lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Naber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-514) MultiPhraseQuery should allow access to terms
Date Wed, 08 Mar 2006 20:42:39 GMT
    [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message