lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENENET-151) Bug in Lucene.Net.Search.MultiPhraseQuery.ExtractTerms(System.Collections.Hashtable terms)
Date Thu, 18 Sep 2008 16:50:44 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632290#action_12632290
] 

Digy commented on LUCENENET-151:
--------------------------------

I think I would be better to write a new(java compatible) interface "Set" and a class "HashSet"
in "Lucene.Net.Collections"  instead of using the ugly interface

collection.Add( objectForKeyAndValue , objectForKeyAndValue );
[
For ex, passing StopWords to StandardAnalyzer is done with a HashTable where one should add
the stop words like 
stopWords.Add("lucene","lucene"); 
]

WeakHashTable is also another candidate for "Lucene.Net.Collections" namespace ( 	 LUCENENET-106
)

DIGY.

> Bug in Lucene.Net.Search.MultiPhraseQuery.ExtractTerms(System.Collections.Hashtable terms)
> ------------------------------------------------------------------------------------------
>
>                 Key: LUCENENET-151
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-151
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: any/all
>            Reporter: Doug Sale
>            Priority: Minor
>         Attachments: MultiPhraseQuery.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> when a query contains duplicate terms, attempting to add them to the Hashtable argument
results in a thrown System.ArgumentException containing the message: "Item has already been
added."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message