lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Krupansky <jack.krupan...@gmail.com>
Subject Re: edismax operators
Date Thu, 02 Apr 2015 12:14:04 GMT
The parentheses signal a nested query. Your plus operator applies to the
overall nested query - that the nested query must match something. Use the
plus operator on each of the discrete terms if each of them is mandatory.
The plus and minus operators apply to the overall nested query - they do
not distribute to each term within the nested query. They don't magically
distribute to all nested queries.

Let's see you full set of query parameters, both on the request and in
solrconfig.

-- Jack Krupansky

On Thu, Apr 2, 2015 at 7:12 AM, Mahmoud Almokadem <prog.mahmoud@gmail.com>
wrote:

> Hello,
>
> I've a strange behaviour on using edismax with multiwords. When using
> passing q=+(word1 word2) I got
>
> "rawquerystring": "+(word1 word2)", "querystring": "+(word1 word2)", "
> parsedquery": "(+(+(DisjunctionMaxQuery((title:word1))
> DisjunctionMaxQuery((title:word2)))))/no_coord",
> "parsedquery_toString": "+(+((title:word1)
> (title:word2)))",
>
> I expected to get two words as must as I added "+" before the parentheses
> so It must be applied for all terms in parentheses.
>
> How can I apply default operator AND for all words.
>
> Thanks,
> Mahmoud
>

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