You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2005/07/29 14:57:01 UTC

DO NOT REPLY [Bug 35456] - NGramFilter -- construct n-grams from a TokenStream

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35456





------- Additional Comments From apache-bugzilla@sebastian-kirsch.org  2005-07-29 14:56 -------
Created an attachment (id=15818)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=15818&action=view)
JUnit test class for NGramAnalyzerWrapper

The tests in this class are concerned with the interaction between QueryParser
and an NGramAnalyzer, and whether searching works as expected on an index
constructed with an NGramAnalyzer.

One of the test cases throws an exception that I haven't investigated yet. So
proceed with caution if you use the QueryParser with NGramAnalyzer. 

..E....
Time: 1.771
There was 1 error:
1)
testNGramAnalyzerWrapperPhraseQueryParsingFails(org.apache.lucene.analysis.NGramAnalyzerWrapperTest)java.lang.NullPointerException

	at
org.apache.lucene.index.MultipleTermPositions.skipTo(MultipleTermPositions.java:178)

	at
org.apache.lucene.search.PhrasePositions.skipTo(PhrasePositions.java:47)
	at org.apache.lucene.search.PhraseScorer.doNext(PhraseScorer.java:73)
	at org.apache.lucene.search.PhraseScorer.next(PhraseScorer.java:66)
	at org.apache.lucene.search.Scorer.score(Scorer.java:47)
	at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:102)
	at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:65)
	at org.apache.lucene.search.Hits.<init>(Hits.java:44)
	at org.apache.lucene.search.Searcher.search(Searcher.java:40)
	at org.apache.lucene.search.Searcher.search(Searcher.java:32)
	at
org.apache.lucene.analysis.NGramAnalyzerWrapperTest.queryParsingTest(NGramAnalyzerWrapperTest.java:75)

	at
org.apache.lucene.analysis.NGramAnalyzerWrapperTest.testNGramAnalyzerWrapperPhraseQueryParsingFails(NGramAnalyzerWrapperTest.java:100)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at
org.apache.lucene.analysis.NGramAnalyzerWrapperTest.main(NGramAnalyzerWrapperTest.java:36)


FAILURES!!!
Tests run: 6,  Failures: 0,  Errors: 1


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org