ShingleMatrixFilter for synonyms

2009-01-13 Thread Angel, Eric
Does anyone have an example using this? I have a SynonymEngine that returns a an array list of strings, some of which may be multiple words. How can I incorporate this with my SynonymEngine at index time? Also, the javadoc for the ShingleMatrixFilter class says: Without a spac

Re: ShingleMatrixFilter for synonyms

2009-01-13 Thread Otis Gospodnetic
ene.apache.org > Sent: Tuesday, January 13, 2009 2:39:11 PM > Subject: ShingleMatrixFilter for synonyms > > Does anyone have an example using this? > > > > I have a SynonymEngine that returns a an array list of strings, some of > which may be multiple words. How c

RE: ShingleMatrixFilter for synonyms

2009-01-13 Thread Angel, Eric
t: Re: ShingleMatrixFilter for synonyms Eric, Unit tests should help you see how this can be used: ./contrib/analyzers/src/java/org/apache/lucene/analysis/shingle/ShingleF ilter.java ./contrib/analyzers/src/java/org/apache/lucene/analysis/shingle/ShingleA nalyzerWrapper.java ./contrib/analyzer

Re: ShingleMatrixFilter for synonyms

2009-01-14 Thread Karl Wettin
t;, 1, 1.4142135f, 0, 10); assertNext(ts, reusableToken, "hello_tellus", 1, 1.4142135f, 0, 10); assertNext(ts, reusableToken, "and_salutations_tellus", 1, 1.7320508f, 0, 10); assertNext(ts, reusableToken, "salutations_tellus", 1, 1.4142135f, 0, 10);