Re: generate field name in query

2017-09-13 Thread Hendrik Haddorp
You should be able to just use price_owner_float:[100 TO 200] OR price_customer_float:[100 TO 200] If the document doesn't have the field the condition is false. On 12.09.2017 23:14, xdzgor1 wrote: Rick Leir-2 wrote Peter The common setup is to use copyfield from all your fields into a 'grab

Re: generate field name in query

2017-09-13 Thread xdzgor1
Rick Leir-2 wrote > Peter > The common setup is to use copyfield from all your fields into a 'grab > bag' containing everything, and then to search on it alone. Cheers -- Rick > > On August 2, 2017 7:31:10 AM EDT, Peter Kirk < > pk@ > > wrote: >>Hi - is it possible to create a query (or fq) whic

Re: generate field name in query

2017-08-02 Thread Rick Leir
Peter The common setup is to use copyfield from all your fields into a 'grab bag' containing everything, and then to search on it alone. Cheers -- Rick On August 2, 2017 7:31:10 AM EDT, Peter Kirk wrote: >Hi - is it possible to create a query (or fq) which generates the field >to search on, base

generate field name in query

2017-08-02 Thread Peter Kirk
Hi - is it possible to create a query (or fq) which generates the field to search on, based on whether or not the document has that field? Eg. Search for documents with prices in the range 100 - 200, using either the field "price_owner_float" or "price_customer_float" (if a document has a field