Search module tweaks…
Posted: 26 September 2007 09:30 AM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23538
Joined  05-20-2002

I’ve run into needing these a few times and seen a few in forum posts, so thought I’d put them into one request:

1.  Add an ‘and’ option when searching multiple categories- right now, if you select two categories, it pulls any entries found in either category.  Would be nice if you could limit it by parameter to pull only entries found in both categories.
2.  In addition to a keywords tag that shows the keywords searched for, would be nice to also have tags for weblog(s) and category(s) searched.
3.  Ability to search in only specified custom fields- the finer grain the control on this one, the nicer it would be (though it gives me a headache thinking how to set it up);
4.  Ability to accept searches with no keywords- this is handy if you have a filter like this- where they can select multiple categories and a keyword- but if no keyword is selected, it returns all entries in the selected cats.
5.  Add to the search_in parameter so you can search in the category fields/title- particularly handy now that we’ve got custom fields in categories.

And that would be my search module wish list!

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 24 October 2007 05:18 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  140
Joined  05-02-2007
Robin Sowell - 26 September 2007 09:30 AM

I’ve run into needing these a few times and seen a few in forum posts, so thought I’d put them into one request:
1.  Add an ‘and’ option when searching multiple categories- right now, if you select two categories, it pulls any entries found in either category.  Would be nice if you could limit it by parameter to pull only entries found in both categories.

I second that.  Would be good to have the option to require entries to match ANY or ALL specified categories.

Profile
 
 
Posted: 25 October 2007 03:25 AM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Mine would have to be for the exp_search table to be log more details about the search, specifically the matching options chosen.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 25 October 2007 05:18 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  13
Joined  01-08-2007

I would like to add to the above by requesting that the search be updated to make use of the MySQL full text Boolean Search functionality so that Boolean operators like AND and OR can be use in the search keywords. This would also allow search results to be scored so that users could see the relevance of the search results returned and entries could be ordered by this score.

Profile
 
 
Posted: 25 October 2007 08:47 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1570
Joined  08-02-2006

Well since we’re adding more,

I would like to be able to paginate the search results using the same pagination as weblogs do. Instead of having total number of pages with a number for each page of the search results, I’d like to see a “next / previous” pagination feature.

 Signature 

Deron Sizemore
==========
Random Jabber | Sizcons | NiceStylesheet | Kentucky Golfing | LogoGala
Twitter: Deron Sizemore | LogoGala

Profile
 
 
Posted: 13 November 2007 10:05 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006

I’ll throw my voice in here.  I think it is important to get some kind of relevance going with EE search - I’m not sure if there is any now?  Even if you return results first that include the term in the title I think it could help - for example recently I needed to search for a wiki page and was given the exact page name, “Comments on Index”. Doing that search returns 2 pages of results, and the page with that title comes up 3rd from last (on the 2nd page). Some kind of weighting of results would make searches much more relevant.

Profile
 
 
Posted: 25 November 2007 11:15 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  75
Joined  09-26-2005

Adding my vote, especially to number 3:

3.  Ability to search in only specified custom fields- the finer grain the control on this one, the nicer it would be

For example:
http://www.ccof.org/directories.php

Profile
 
 
Posted: 25 November 2007 02:21 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Avatar
Rank
Total Posts:  91
Joined  09-08-2006

Also, I’d like the URL of the results to be more like this. In case we search for the term apple

http://www.example.com/index.php/search/apple


or at least

http://www.example.com/index.php/search?q=apple


or similar. This makes almost an API for external search queries for a EE web site.

Why? For example, I love the way I can search the EE docs just by typing in my URL box: ee apple
(using SafariStand with QuickSeach and EE as shortcut to

http://www.google.com/search?q=@key&as_sitesearch=expressionengine.com/docs&sa=Search

where @key is the search term. I know Firefox has this abilty by default.)

 Signature 

Stan Majerski
elemental media

Profile
 
 
Posted: 25 November 2007 02:37 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006

While I’m glad that it does, I think the fact that the docs section uses Google as a search engine is a bit telling wink

Profile
 
 
Posted: 25 November 2007 02:41 PM   [ Ignore ]   [ # 9 ]  
Grad Student
Avatar
Rank
Total Posts:  91
Joined  09-08-2006
Brian M. - 25 November 2007 02:37 PM

While I’m glad that it does, I think the fact that the docs section uses Google as a search engine is a bit telling wink

Brian,

I am not a native english speaker, so I don’t fully understand. What are you glad “it” does?

I just wish the URL is something more telling than:

http://www.example.com/search/1adf6a3fe9211e354ec7f9bf352b1f17/

 Signature 

Stan Majerski
elemental media

Profile
 
 
Posted: 25 November 2007 02:46 PM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006

I’m glad that it does so that I can actually find what I’m looking for…

Profile
 
 
Posted: 25 November 2007 02:58 PM   [ Ignore ]   [ # 11 ]  
Grad Student
Avatar
Rank
Total Posts:  91
Joined  09-08-2006

I am sorry Brian, I still don’t fully understand your comment, but be free to to ignore me.

I just was not sure if you like the way EE makes and url at the search results or you fancy more the google style or clean example.com/search/apple style.

 Signature 

Stan Majerski
elemental media

Profile
 
 
Posted: 26 November 2007 11:08 AM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  368
Joined  11-05-2002

It may have been suggested before, but I would add that using google custom search on your EE site will allow you a vastly more “relevant” search. We cannot expect either mysql or EE to have the “search intelligence” of the google index.

 Signature 

Craig Issod, Publisher
Hearth.com - Answers to all your Burning Questions
http://www.hearth.com

Profile
 
 
Posted: 26 November 2007 11:29 AM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15845
Joined  06-03-2002

elemental: You can achieve that now to an extent with “auto search”, a way of building and submitting a search form on the fly based on information in the URL.

kstatham: Custom field searching is now possible directly with the weblog entries tag.  It supports dynamic parameters, and of course, you can even get crazier if you like, so that http://example.com/index.php/beer/list/type/bock/ could be used like so:

{exp:weblog:entries search:{segment_3}="{segment_4}"}

 Signature 
Profile
MSG
 
 
Posted: 26 November 2007 01:56 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  91
Joined  09-08-2006

Derek: Thank you. I didn’t know this was possible the “auto search” term did not occure to me. This is half way what I had in mind (even more then half way) since the functionality is met. I only wish the resulting URL on the results page would contain the searched term instead of the random number (XID i guess).

But still this answered my request almost fully. Thank you.

UPDATE: Just tried it and it works great.

handyman: I didn’t think that EE could replace the google algorithm but simly mimic a similar URL scheme and auto search function.

 Signature 

Stan Majerski
elemental media

Profile
 
 
Posted: 02 December 2007 01:35 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Rank
Total Posts:  75
Joined  09-26-2005

Derek, my apologies for not replying sooner. Thanks for the help with this. Can you point to where I might find more info on how to pass user-entered data, from a form field, to a url segment? Can seem to wrap my head around this one.

Thanks again,
Ken

Profile
 
 
Posted: 03 December 2007 09:37 AM   [ Ignore ]   [ # 16 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15845
Joined  06-03-2002

You could use dynamic parameters, or even a simple select field with pre-built URLs, redirecting to that location with a Javascript onchange event handler.

 Signature 
Profile
MSG
 
 
Posted: 03 December 2007 12:36 PM   [ Ignore ]   [ # 17 ]  
Grad Student
Rank
Total Posts:  79
Joined  01-22-2002
Derek Jones - 26 November 2007 11:29 AM

elemental: You can achieve that now to an extent with “auto search”, a way of building and submitting a search form on the fly based on information in the URL.

kstatham: Custom field searching is now possible directly with the weblog entries tag.  It supports dynamic parameters, and of course, you can even get crazier if you like, so that http://example.com/index.php/beer/list/type/bock/ could be used like so:

{exp:weblog:entries search:{segment_3}="{segment_4}"}

About the auto search. Is there anyway to have the URL stay as “http://www.reedmaniac.com/search/auto/ExpressionEngine/” for example? I’d be nice if those pages got picked up in search engines. I’m looking more to create static keyword pages rather than general search results. I know I can use categories for the same effect, but there’d be too many variations that my category list would be a mess. Any ideas?

Profile
 
 
Posted: 03 December 2007 01:54 PM   [ Ignore ]   [ # 18 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32910
Joined  05-14-2004

Oldtimer - if you need it to stay in the URL, why not use the search: parameter?

As a note, if you still want some help with this, please start a thread up in how-to, explaining exactly what your goal is.  Let’s leave this thread to the feature requests.  Thanks =)

 Signature 
Profile
MSG
 
 
   
 
 
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: 65026 Total Logged-in Users: 39
Total Topics: 82115 Total Anonymous Users: 20
Total Replies: 441304 Total Guests: 203
Total Posts: 523419    
Members ( View Memberlist )
Newest Members:  meenoiYang.JianuoioitsukiNathan HammondalexcigadamstaneckiLucas Mayscybermilltstitt