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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]