Forums / Setup & design / Problem for Search in Database

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problem for Search in Database

Author Message

Leandro Alves

Tuesday 06 July 2004 9:03:06 am

Hi!!!

I am having several problems with the search operator, it does't work fine!!! :(

<b>One of its:</b>
I created a new class called "Member" with the attributes Full Name(Text line), Occupation(Text line) and Picture (image) and set the roles... after I created the following members:

- Eder Silva Trevisoli
- Janaina A Padoveze
- Leandro D Alves

In my template, I have this code to search:

<div id="searchbox">
<form action={"/content/search/"|ezurl} method="get">
<input class="searchtext" type="text" size="10" name="SearchText" id="Search" value="" />
<input class="searchbutton" name="SearchButton" type="submit" value="Search" />
</form>
</div>

I haven't created a override template for search.tpl yet, I'm using the standard template.

<b>Cases:</b>

1. If I search for "Leandro" <b>or</b> "D" <b>or</b> "Alves", this return the message:
<b>Search for "One of above" returned 1 matches"</b>

2. If I search for "Eder" <b>or</b> "Silva" it <b>doesn't work</b>:
<b>No results were found when searching for "One of above"</b>

<b>But</b> If I search for "Trevisoli" it <b>work</b>:
<b>Search for "One of above" returned 1 matches"</b>

3. And with "Janaina" it doesn't work too, but with "Padoveze" it work!

<b>Other problem</b>

If I have a article's name im my database <b>with accent</b> and looking for this word <b>without accent</b>, the search return <b>ALL</b> objects of my site (All article, All forders, ALL images...)

Example:

Article's name: O que é Política?

If I search for <b>"Politica"</b> this return:

Users Anonymous User Guest accounts Administrator users Editors Administrator User Media Anonymous Users

And ALL others objects!!!

<b>What Can I do to resolve my problem?</b>
<b>Is there anything to do in my Database, in my eZ???</b>

My database is with a lot of things (articles, folders, images, files)

I performed the runcronjobs.php script but nothing happened!!! :(

Thanks a lot!
Leandro