You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sunnyfr <jo...@gmail.com> on 2009/02/26 15:03:42 UTC

dismax + and -

Hi 

How come if i put in my query q=+wow-kill
<str name="q">wow-kill</str>
<str name="qt">dismax</str>

I will have books which contain wow and kill instead of books which have wow
in the title without kill???
Thanks a lot,

-- 
View this message in context: http://www.nabble.com/dismax-%2B-and---tp22224770p22224770.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: dismax + and -

Posted by Jeff Newburn <jn...@zappos.com>.
In your example there is no space between +wow -kill so my guess is that
solr is interpreting it as wow-kill all one word.  Then depending on the
field type the tokenizer is probably splitting wow and kill into 2 words
along the -.
-- 
Jeff Newburn


> From: sunnyfr <jo...@gmail.com>
> Reply-To: <so...@lucene.apache.org>
> Date: Thu, 26 Feb 2009 06:03:42 -0800 (PST)
> To: <so...@lucene.apache.org>
> Subject: dismax + and -
> 
> 
> Hi 
> 
> How come if i put in my query q=+wow-kill
> <str name="q">wow-kill</str>
> <str name="qt">dismax</str>
> 
> I will have books which contain wow and kill instead of books which have wow
> in the title without kill???
> Thanks a lot,
> 
> -- 
> View this message in context:
> http://www.nabble.com/dismax-%2B-and---tp22224770p22224770.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>