Thank you Jack for your clarifications. I used regular defType and set
q.op=AND so all terms without operators are must. How can I use this with
edismax?

Thanks,
Mahmoud

On Thu, Apr 2, 2015 at 2:14 PM, Jack Krupansky <jack.krupan...@gmail.com>
wrote:

> 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.mahm...@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
> >
>

Reply via email to