lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: TR: How to search on all fields with one query ?
Date Thu, 18 Dec 2008 15:28:11 GMT


I would do query expansion:
- receive the query, parse it the way you want (e.g. use QueryParser)
- then expand your query along the various fields
If using different analyzers per field (e.g. soundex), you'll have to  
adjust things when coming into the term-query.

paul


Le 18-déc.-08 à 16:09, DELAVENNE Guillaume a écrit :

> Hi,
>
> I'm beginner on Lucene. I'm working on a Poc Lucene project at  
> Generali
> France company.
>
> I have 40 fields (max ten words by field) in my index of about 6
> millions documents.
> I need to search a word in all fields.
>
> Must I create a field "content" with all the informations of the  
> others
> fields ?
> Do you have another way ?
>
> Many thanks,
> Guillaume
>
>
>
>


Mime
View raw message