lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: MultiPhraseQuery
Date Mon, 06 Mar 2006 21:46:29 GMT
On Mar 6, 2006, at 4:43 PM, Daniel Naber wrote:
> On Sonntag 05 März 2006 19:03, Eric Jain wrote:
>
>> I need to write a function that copies a MultiPhraseQuery and changes
>> the field the query applies to. Unfortunately the API allows  
>> access to
>> neither the contained terms nor the field! The other query classes I
>> have so far dealt with all seem to allow access to the contained  
>> query
>> terms...
>
> Please try to add this to MultiPhraseQuery and let us know if it  
> helps:
>
>   public List getTerms() {
>     return termArrays;
>   }

It would probably be better for an immutable List to be returned  
rather than the internal mutable one, just to avoid a case of the  
termArrays from being modified from outside.

	Erik



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