[ 
http://issues.apache.org/jira/browse/LUCENE-514?page=comments#action_12369550 ] 

Daniel Naber commented on LUCENE-514:
-------------------------------------

Actually that patch makes the list itself immutable, but not the arrays inside. 
I think what is needed is something like this:

  public List getTerms() {
    List nestedList = new ArrayList();
    for (Iterator iter = termArrays.iterator(); iter.hasNext();) {
      Term[] terms = (Term[]) iter.next();
      nestedList.add(Arrays.asList(terms));
    }
    return Collections.unmodifiableList(nestedList);
  }


> MultiPhraseQuery should allow access to terms
> ---------------------------------------------
>
>          Key: LUCENE-514
>          URL: http://issues.apache.org/jira/browse/LUCENE-514
>      Project: Lucene - Java
>         Type: Improvement
>   Components: Search
>     Versions: 1.9
>     Reporter: Eric Jain
>  Attachments: MultiPhraseQuery.patch
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to