The Forge Reference Project

 

Topic: Question about searching
Started by: bcook1971
Started on: 11/28/2003
Board: Site Discussion


On 11/28/2003 at 2:10am, bcook1971 wrote:
Question about searching

Can your search page handle strings? e.g. ["running out of story"]. Or would you have to go [running AND out AND of AND story]?

I have trouble using it in the same way as Yahoo or Google and end up getting no matches or a match with every post in the database.

Message 8818#91857

Previous & subsequent topics...
...started by bcook1971
...in which bcook1971 participated
...in Site Discussion
...including keyword:

 (leave blank for none)
...from around 11/28/2003




On 11/28/2003 at 8:37am, Brian Leybourne wrote:
RE: Question about searching

There's a "use query as entered" option that does exactly what you're asking (well, it seems to when I use it).

Brian.

Message 8818#91865

Previous & subsequent topics...
...started by Brian Leybourne
...in which Brian Leybourne participated
...in Site Discussion
...including keyword:

 (leave blank for none)
...from around 11/28/2003




On 12/2/2003 at 5:59pm, jrs wrote:
RE: Question about searching

Bill,

I find that php searching is not what I would call robust. You cannot perform string searches. As I'm sure you've already discovered, adding quotes around a phrase has no affect on the search results. Searching for words or phrases with hyphens also mucks up the search. I will illustrate with the following.

I want to find a specific topic where one of the posts includes the phrase "bunny slippers." Using the search for any terms default, I get 44 hits. Not unmanagable, but lets say that I don't want to go through all of them. I try the search for all terms option and get 1 hit and it's not what I want. Why is that?

The topic in question has two references to bunny slippers, one is "nude-but-for-bunny-slippers", the other includes a typo, "bunny slipppers." Both of these will get picked up in the search for any option, but neither will get picked up in the search for all option. You can't always anticipate typos, but it seems that the hyphenated phrase should be searchable. Wrong.

nude-but-for-bunny-slippers doesn't work
*slippers doesn't work
nude* doesn't work
nude bunny slippers (Search for all) doesn't work
nude bunny slippers (Search for any) gives me even more hits

In your example, "running out of story," the main problem is the large number of hits: 4182 as an any search, and 696 as an all search. The words "out" and "of" are dropped from both searchs. So you are essentially searching for the words "running" and "story." These two words are not particularly useful as search terms at the Forge.

You can try narrowing the search by using more unique terms, selecting a forum or forum category, or imposing a date limit. If you can't narrow the search and don't want to wade through all the topics, your best bet is to include an author you suspect posted on the topic or who you might want to read on the topic. (Note that authors must match log in ids although capitalization is not important.) For example, an all search using "running" and "story" with author "valamir" results in 15 hits.

Julie

Message 8818#92164

Previous & subsequent topics...
...started by jrs
...in which jrs participated
...in Site Discussion
...including keyword:

 (leave blank for none)
...from around 12/2/2003




On 12/3/2003 at 8:14pm, Emily Care wrote:
RE: Question about searching

jrs wrote: If you can't narrow the search and don't want to wade through all the topics, your best bet is to include an author you suspect posted on the topic or who you might want to read on the topic.


This is a good ace to have in the hole.

Case in point, searching the term "searching" with author "jrs" brings up 1 hit: this thread.

Message 8818#92308

Previous & subsequent topics...
...started by Emily Care
...in which Emily Care participated
...in Site Discussion
...including keyword:

 (leave blank for none)
...from around 12/3/2003