Search results depending on search word length?

View: New views
3 Messages — Rating Filter:   Alert me  

Search results depending on search word length?

by solenweg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

New to solr so maybe it's studip question, but here we go:

I've got a long title name like "thisisaverylongtesttitle" and is then doing a search for "thisisavery" but with no results. I can with a search for "thisisaverylongtit" get the result. But why not with a shorter search criteria? Is there a limit somewhere in the config?

Tried using the star operator and that helps, and I get the correct results back. But then the score is messed up (always 100%). Can you change this so that it keeps its score despite of the star operator, could this be a way to go. But how?

Anyone?

Re: Search results depending on search word length?

by solenweg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just an extra comment in context with this issue: Maybe there is a way to set the search criteria a little "looser" - meaning it doesn't have to contain so big a correct percentage of the real name/title. Or am I way off?

Re: Search results depending on search word length?

by Jeff Newburn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am guessing that the field is actually just a string or a really long
word.  Solr looks for occurrences of the term/token.  It does not however
search within a given token without the *.  So in your example the system
will not match thisisavery with thisisaverylongtesttitle even though they
have the same starting letters unless you use the * to tell it to.

One option you could explore is the spellchecking option.  It takes your
query and "spellchecks" it against a set of words from fields you designate.
If they get close then it may be smart enough to pick up the words they are
trying to use.

--
Jeff Newburn
Software Engineer, Zappos.com
jnewburn@... - 702-943-7562


> From: solenweg <daniel_lynge@...>
> Reply-To: <solr-user@...>
> Date: Thu, 9 Jul 2009 03:51:04 -0700 (PDT)
> To: <solr-user@...>
> Subject: Search results depending on search word length?
>
>
> New to solr so maybe it's studip question, but here we go:
>
> I've got a long title name like "thisisaverylongtesttitle" and is then doing
> a search for "thisisavery" but with no results. I can with a search for
> "thisisaverylongtit" get the result. But why not with a shorter search
> criteria? Is there a limit somewhere in the config?
>
> Tried using the star operator and that helps, and I get the correct results
> back. But then the score is messed up (always 100%). Can you change this so
> that it keeps its score despite of the star operator, could this be a way to
> go. But how?
>
> Anyone?
> --
> View this message in context:
> http://www.nabble.com/Search-results-depending-on-search-word-length--tp244080
> 15p24408015.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>