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 brianeno <br...@gmail.com> on 2010/01/10 15:48:59 UTC

Searching Behavior Multi Word

Hello, I am having trouble figuring out an issue with Solr and returning of a
query.  I have a document title "Band Of Brothers" and seeing the following
results.

- “Band” = works, returns the document
- “Brothers = works, returns the document
- “Band of” = works, returns the document
- “Band of “ = works, returns the document
- “of Brothers” = works, returns the document
- “ of Brothers” = works, returns the document
- “Band of Brothers” = does not work, does not return the document

I can't figure out why the last one does not work?  I am using the dismax
query parser and have made attempts in connection with stopwords, but to no
avail. 

Can anyone steer me in the right direction, I assume this is a pretty
standard Lucene/Solr behavior but looking at documents and forum I haven't
seen it or missed it.

Many thanks.

-- 
View this message in context: http://old.nabble.com/Searching-Behavior-Multi-Word-tp27098985p27098985.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Searching Behavior Multi Word

Posted by Erik Hatcher <er...@gmail.com>.
Give &debugQuery=true a try and see what each of those parse to.

What are your dismax settings?   And for the fields you're querying  
(pf/qf), what are their field types and analysis details?

	Erik



On Jan 10, 2010, at 9:48 AM, brianeno wrote:

>
> Hello, I am having trouble figuring out an issue with Solr and  
> returning of a
> query.  I have a document title "Band Of Brothers" and seeing the  
> following
> results.
>
> - “Band” = works, returns the document
> - “Brothers = works, returns the document
> - “Band of” = works, returns the document
> - “Band of “ = works, returns the document
> - “of Brothers” = works, returns the document
> - “ of Brothers” = works, returns the document
> - “Band of Brothers” = does not work, does not return the document
>
> I can't figure out why the last one does not work?  I am using the  
> dismax
> query parser and have made attempts in connection with stopwords,  
> but to no
> avail.
>
> Can anyone steer me in the right direction, I assume this is a pretty
> standard Lucene/Solr behavior but looking at documents and forum I  
> haven't
> seen it or missed it.
>
> Many thanks.
>
> -- 
> View this message in context: http://old.nabble.com/Searching-Behavior-Multi-Word-tp27098985p27098985.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>