> Hi
> I would appreciate if someone can throw some light on the
> following point
> regarding proximity search.
> i have a search box and if a use comes and type in "honda
> car" WITHOUT any
> double quotes, i want to get all documents with matches,
> and also they
> should be ranked based on proximity. i.e. the more the two
> terms are nearer
> the more is the rank. 
> From the admin looks like in order to test proximity i have
> to always give
> the word in double quote and a slop value
> http://localhost:8983/solr/select/?q="honda+car"~12&version=2.2&start=0&rows=10&indent=on
> 
> Hence looks like from admin point of view in order to do
> proximity i have to
> always give it in double quotes.
> 
> My questions is in order to do proximity search we always
> have to pass the
> query as a phrase ie. in double quotes.
Yes, if you are using LuceneQParserPlugin.
 
> The next question is that i thought using dismax handler i
> could do a search
> on a field and i can specify the ps value in order to
> define proximity.

> and this is the query i am giving and i get back no
> results. any advice
> where i am going wrong
> 
> http://localhost:8983/solr/proxTest/?q="honda car"

Can you try http://localhost:8983/solr/proxTest/?q=honda+car
You don't need quotes in dismax.
You can append &debugQuery=true to url to see whats going on.

Hope this helps.




      

Reply via email to