lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Wildcards in field name
Date Tue, 15 May 2012 14:20:31 GMT
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


On Tue, May 15, 2012 at 3:02 PM, Joachim Andersson
<> 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:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message