lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bamford <chris.bamf...@scalix.com>
Subject Re: Combining Wildcard and Term Queries?
Date Tue, 26 Aug 2008 17:00:50 GMT
Daniel,

That sounds like what I'm after - but how do I get hold of the 
IndexReader so I can call IndexReader.terms(Term) ?
The code where I am doing this work is getFieldQuery(String field, 
String queryText) of my custom query parser ...

Thanks,

- Chris


Daniel Naber wrote:
> On Dienstag, 26. August 2008, Chris Bamford wrote:
>
>   
>> Can you combine these two queries somehow so that they behave like a
>> PhraseQuery?
>>     
>
> You can use MultiPhraseQuery, see
> http://lucene.apache.org/java/2_3_2/api/core/org/apache/lucene/search/MultiPhraseQuery.html
>
> Regards
>  Daniel
>
>   


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