lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gérard Dupont <>
Subject Re: Does the default operator affect phrase searching?
Date Wed, 02 Sep 2009 21:00:55 GMT
Hi Dan,

Phrase search (ie using quote) in Lucene does exact match or your expression
so if you type ["david pdf"] (brackets are there to limit the query in my
mail only) the system search for a document that contain the term 'david'
and the term 'pdf' separated by a space (well in the classic case, I suppose
you don't have a specific query parser). So since your corpus does not
contain any document with "david pdf" results are empty. In any case, the
defaultOperator have nothing to do with this. It only occur if you do a
query like ["david pdf" toto] then it will be interpreted as ["david pdf" OR
toto] (given is is the default operator)

I don't know which other legacy system you also used, but this may be a
complete different query syntax and so quote are not interpreted in the same



On Wed, Sep 2, 2009 at 22:49, Dan A. Dickey <> wrote:

> I'm having a problem with doing a phrase search of "david pdf".
> When I search for just "david", I get 7 hits.  When I search for "pdf"
> I get 73 hits.  On a legacy system, searching for "david pdf" I get
> 78 hits.  And on Solr (1.4 - one of the nightly builds) - when searching
> for "david pdf" I get 0 hits.  I have the defaultOperator for my schema
> set to AND - could this be causing the problem?
> When I set {!lucene q.op=OR} in the query, I still get zero hits.
> Suggestions?  Is there any way to debug *why* something didn't hit?
> Or dump out what is contained in the index for one of the records?
> Thanks.
>        -Dan
> --
> Dan A. Dickey | Senior Software Engineer
> Savvis
> 10900 Hampshire Ave. S., Bloomington, MN  55438
> Office: 952.852.4803 | Fax: 952.852.4951
> E-mail:

Gérard Dupont
Information Processing Control and Cognition (IPCC) - EADS DS

Document & Learning team - LITIS Laboratory

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message