
ian.lea at gmail
May 15, 2012, 7:20 AM
Post #2 of 2
(126 views)
Permalink
|
No and no. MultiFieldQueryParser is the only thing that comes to mind as being remotely close but you have to tell it the field names. I guess you could use IndexReader.getFieldNames(...) to find indexed fields and pass the output from that through a wildcard regexp and feed the output from that into MultiFieldQueryParser. Good luck. I always prefer to use a "contents" field that holds all searchable data. -- Ian. On Tue, May 15, 2012 at 3:02 PM, Joachim Andersson <joachim.andersson [at] ldc> wrote: > Is it possible todo a query with wildcards in field name? > > is there any QueryParser that handles wildcards in fields names? > > > //Joachim > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Wildcards-in-field-name-tp3983865.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|