lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Using edismax in a filter query
Date Fri, 10 Jul 2015 12:09:06 GMT
Hi Tomasi

Yes it is possible, please see local params :

fq={!edismax qf='field1 field2 field'}search key

On Friday, July 10, 2015 2:20 PM, Thomas Seidl <> wrote:

Hi all,

I was wondering if there's any way to use the Extended DisMax query
parser in an "fq" filter query?
The problem is that I have a "facet.query" with which I want to check
whether a certain set of keywords would have any results. But since the
normal query goes across multiple fields, I end up with something like this:

  facet.query=(field1:search OR field2:search OR field3:search OR
field4:search) AND (field1:keys OR field2:keys OR field3:keys OR

(Just with a lot more fields.) On the one hand this is rather ugly to
see in the logs, but mostly I'm concerned that this would be harder to
parse for Solr than using its own edismax parser to do the job.

So, is there a way to do that? Or are there any other alternatives to
achieve this (except sending a second query, of course)?
Since the fields used can change from request to request, it's not
possible to dump all their contents into a single field for that purpose.

Thanks in advance,

View raw message