I'm getting the result set that matches what it would be if I just searched for the first word in the query.

So I'm getting the results for mouse.

And yes, abstract: is the name of the field.

So a search for

abstract: mouse

would yield 69103 results

abstract: mouse anythingelseIputhere
yields 69103 results, even if the second token doesn't exist anywhere in the indexes.

abstract: mouse verycommonterm
yields 69103 results, even if the second token would normally result in say 150000 matches when searched on its own.

I think what you are describing as being possible is what is happening, the query parser is taking what's being passed to it

abstract: foo bar
and really converting it into

abstract: foo OR default:bar

Matt

On 11/17/2010 1:38 PM, kenf_nc wrote:
Multi word queries is the bread and butter of Solr/Lucene, so I'm not sure I
understand the complete issue here. For clarity, is 'abstract' the name of
your default text field, or is your query

q=abstract: mouse genome

if the latter, my thought was is it possible that the query is being
converted into a query of
q=abstract:mouse genome  where mouse is looked for in the field abstract,
and genome is compared to the default text field. This is a stab in the
dark, I don't know what your data looks like.

You say it doesn't work the way you expect, but you don't really say what
you do see. Are you getting zero results, or fewer than you expected, or
only results that match all fields (the AND proposition)?


Reply via email to