You might be able to do something like this in a custom QParser. look at
the LuceneQParser as an example, but replace usages of QueryParser with
your own subclass of QueryParser where you override the getBooleanQuery
method and muck with the Occur property of the BooleanClauses if they all
It could, it would be a little bit clunky but that's the direction I'm
heading.
On Tue, Jun 7, 2011 at 6:05 PM, lee carroll lee.a.carr...@googlemail.comwrote:
Hi Brian could your front end app do this field query logic?
(assuming you have an app in front of solr)
On 7 June 2011 18:53,
I feel like this should be fairly easy to do but I just don't see anywhere
in the documentation on how to do this. Perhaps I am using the wrong search
parameters.
On Mon, Jun 6, 2011 at 12:19 PM, Brian Lamb
brian.l...@journalexperts.comwrote:
Hi all,
Is it possible to change the query parser
Nope, not possible.
I'm not even sure what it would mean semantically. If you had default
operator OR ordinarily, but default operator AND just for field2,
then what would happen if you entered:
field1:foo field2:bar field1:baz field2:bom
Where the heck would the ANDs and ORs go? The
Hi Jonathan,
Thank you for your reply. Your point about my example is a good one. So let
me try to restate using your example. Suppose I want to apply AND to any
search terms within field1.
Then
field1:foo field2:bar field1:baz field2:bom
would by written as
There's no feature in Solr to do what you ask, no. I don't think.
On 6/7/2011 1:30 PM, Brian Lamb wrote:
Hi Jonathan,
Thank you for your reply. Your point about my example is a good one. So let
me try to restate using your example. Suppose I want to apply AND to any
search terms within field1.
Hi Brian could your front end app do this field query logic?
(assuming you have an app in front of solr)
On 7 June 2011 18:53, Jonathan Rochkind rochk...@jhu.edu wrote:
There's no feature in Solr to do what you ask, no. I don't think.
On 6/7/2011 1:30 PM, Brian Lamb wrote:
Hi Jonathan,