Possible Search Module Problems.
Posted: 12 July 2004 09:35 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  488
Joined  05-14-2004

The other day I was doing some searches in my site and the following occurred.

1) Searching for same string multiple times returns a different number of results.  For instance searching for Polyheme on my site sometimes returns 2 and sometimes 3 results.

2) Searching for words I know are included in entries returns an error: No results found.  It seems to me, the search through the entry part isn’t always working here, as searches for the words in title seems to work except for instance of #1.
For instance I searched for Blogfather and Vik separately and both returned no results, yet there was one post that had both words in it at the time (now there is a second post with Blogfather).

Something just doesn’t seem to be working right.

 Signature 

Far From Perfect
Broadcasting live from Iraq via High-speed Bytes/Second Internet!

Profile
 
 
Posted: 12 July 2004 09:41 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  488
Joined  05-14-2004

It seems to be only affecting the simple form.
Just so you can see:

<div class="module">
{exp:search:simple_form search_in="ffp" result_page="ffp/results"}
<input type="text" name="keywords" value="" class="search" size="18" maxlength="100" />
<
br />
<
a href="{path=ffp/search}">Advanced Search</a>
<
br />
<
input type="submit" value="submit"  class="submitbutton" />
{/exp:search:simple_form}

 Signature 

Far From Perfect
Broadcasting live from Iraq via High-speed Bytes/Second Internet!

Profile
 
 
Posted: 12 July 2004 04:14 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Take a look at the “Simple Search” documentation.  You have search_in=“ffp” as a parameter and that isn’t a valid value.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 13 July 2004 07:34 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  488
Joined  05-14-2004

Nope, no difference in my results using the simple form.

This is the output of the form with the search_in removed:

<form method="post" action="http://www.seadoc.net/index.php">
<
div>
<
input type="hidden" name="ACT" value="15" />
<
input type="hidden" name="XID" value="b4e2a1fa12176212fd5f062ffbcf60ce602f98d6" />
<
input type="hidden" name="RP" value="ffp/results" />
<
input type="hidden" name="RES" value="" />
<
input type="hidden" name="status" value="" />
<
input type="hidden" name="weblog" value="" />

<
input type="hidden" name="search_in" value="" />
</
div>


<
input type="text" name="keywords" value="" class="search" size="18" maxlength="100" />
<
br />
<
a href="http://www.seadoc.net/index.php/ffp/search/">Advanced Search</a>
<
br />
<
input type="submit" value="submit"  class="submitbutton" />
</
form>

 Signature 

Far From Perfect
Broadcasting live from Iraq via High-speed Bytes/Second Internet!

Profile
 
 
Posted: 14 July 2004 05:46 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

If you don’t specify a value for “search_in”, then EE defaults to only searching the entry titles.  Is that not consistent with what you’re seeing?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 15 July 2004 06:14 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  488
Joined  05-14-2004

No, the simple form does not seem to return any results.
For instance go to www.seadoc.net.  You’ll see a sticky entry with the word “Blogfather” right there in the title.
Now go to the search in the right column and type in Blogfather.  No results returned, and it should have at the very least returned THAT entry should it not?

Now do the same thing with the advanced search.  It returns either one or both entries containing “blogfather.”

 Signature 

Far From Perfect
Broadcasting live from Iraq via High-speed Bytes/Second Internet!

Profile
 
 
Posted: 15 July 2004 06:16 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  488
Joined  05-14-2004

Oh, and to reiterate, when it does return a value, sometimes it returns different numbers of results (ie.. polyheme will sometimes return 3 and sometimes 4 entries) and that is with either the simple or advanced search.

 Signature 

Far From Perfect
Broadcasting live from Iraq via High-speed Bytes/Second Internet!

Profile
 
 
Posted: 15 July 2004 06:54 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  488
Joined  05-14-2004

I changed the search_in value to “everywhere, and things seem to be working better now, but I did notice that “Sticky” posts seem to be ignored by the search results.

I think that is what threw me, as I couldn’t find anywhere in the documentation (I may be blind) that says that sticky posts are ignored by the search engine.  It also explains why the number of results was different depending on which search you used (simple or advanced) since the Simple was searching title/no stickies and the Advanced searches “everywhere” (still unsure of stickies there).

It makes sense that Sticky posts wouldn’t be included since they are the first posts in the blog and the easiest to find.  I just didn’t pick up on it till I started trying to figure out why the simple search wasn’t operating right.

Thanks Chris.

 Signature 

Far From Perfect
Broadcasting live from Iraq via High-speed Bytes/Second Internet!

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64493 Total Logged-in Users: 66
Total Topics: 81037 Total Anonymous Users: 34
Total Replies: 436085 Total Guests: 276
Total Posts: 517122    
Members ( View Memberlist )