lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lokesh Madan <mail2lok...@gmail.com>
Subject Re: search any field name having a specific value
Date Fri, 17 Mar 2017 21:27:25 GMT
May be, index the field names as metadata file. When when querying, first get list of alls
fields and then shoot a query. You can do this 2 hop query, or else maintain some cache and
then shoot a query.
> On Mar 17, 2017, at 11:53 AM, Cristian Lorenzetto <cristian.lorenzetto@gmail.com>
wrote:
> 
> It permits to search in a predefined lists of fields that you have to know
> in advance. In my case i dont know what is the fieldname.
> maybe WildcardQuery?
> 
> 2017-03-17 19:30 GMT+01:00 Corbin, J.D. <jd.corbin@pearson.com>:
> 
>> ​You might take a look at MultiFieldQueryParser.  I believe it allows you
>> to search multiple index fields at the same time.
>> 
>> 
>> 
>> J.D. Corbin
>> 
>> Senior Research Engineer
>> 
>> Advanced Computing & Data Science Lab
>> 
>> 3075 W. Ray Road
>> Suite 200
>> Chandler, AZ 85226-2495
>> USA
>> 
>> 
>> M: (303) 912-0958
>> 
>> E: jd.corbin@pearson.com
>> 
>> Pearson
>> 
>> Always Learning
>> Learn more at www.pearson.com <http://www.pearsonk12.com/>
>> 
>> On Fri, Mar 17, 2017 at 11:05 AM, Cristian Lorenzetto <
>> cristian.lorenzetto@gmail.com> wrote:
>> 
>>> it is possible create a query searching any document containing any field
>>> having value == X?
>>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message