lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: How to do an all field search without using a "catchall" field or "MultiFieldQueryParser" ?
Date Tue, 15 Mar 2011 11:14:43 GMT
IndexReader.getFieldNames()?

public abstract Collection<String>
getFieldNames(IndexReader.FieldOption fldOption)

Use that to get indexed fields and pass that list to MultiFieldQueryParser.


--
Ian.

On Tue, Mar 15, 2011 at 10:46 AM, shrinath.m <shrinath.m@webyog.com> wrote:
> Catchall field has its own disadvantages of increasing index size.
> MultiFieldQueryParser has to know the field names before hand.
>
> How do I do a multi field search
> - without knowing fields in the index
> - without having a CatchAll field
>
>
> PS : I went through the Lucene in Action book, and in chapter 13 ( SIREn
> case study ), he says SIREn does it. I also wanted to know how can I do the
> same with similar efficiency ?
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-do-an-all-field-search-without-using-a-catchall-field-or-MultiFieldQueryParser-tp2681163p2681163.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
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