Re: Numeric value ignored by EdgeNGramFilterFactory

2019-07-04 Thread Zheng Lin Edwin Yeo
Hi, You can use the "Analysis" page in the Solr Admin UI to input your value and test the output, and see how the tokenizersand various filters does to your value. Regards, Edwin On Thu, 4 Jul 2019 at 17:28, Yasufumi Mizoguchi wrote: > Hi, > > EdgeNGramFilterFactory seems to drop tokens shorte

Re: Numeric value ignored by EdgeNGramFilterFactory

2019-07-04 Thread Erick Erickson
The admin/analysis page is very valuable for this kind of question. Your edgengram filter has a mingram size of 3 so it’s throwing out 72. Best, Erick > On Jul 4, 2019, at 1:27 AM, Shamik Bandopadhyay wrote: > > autoGeneratePhraseQueries="true"> "solr.WhitespaceTokenizerFactory" /> "solr.

Re: Numeric value ignored by EdgeNGramFilterFactory

2019-07-04 Thread Yasufumi Mizoguchi
Hi, EdgeNGramFilterFactory seems to drop tokens shorter than minGramSize param. Check the example of minGramSize="4" maxGramSize="6" case in below page. https://lucene.apache.org/solr/guide/8_1/filter-descriptions.html#edge-n-gram-filter So, you should set minGramSize=2 or 1 if you want to keep 7

Fwd: Numeric value ignored by EdgeNGramFilterFactory

2019-07-04 Thread Shamik Bandopadhyay
Hi, I'm using EdgeNGramFilterFactory to support partial search. Here's my field definition. I run into an issue when I'm trying a numeric terms in search. For e.g. if I search for "72 hours", EdgeNGramFilterFactory ignores 72 and only stores hou and hour in index. Since

Numeric value ignored by EdgeNGramFilterFactory

2019-07-04 Thread Shamik Bandopadhyay
Hi, I'm using EdgeNGramFilterFactory to support partial search. Here's my field definition. < filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt" /> I run into an issue when I'm trying a numeric terms in search. For e.g. if I search for *72 hours*, Ed

Numeric value ignored by EdgeNGramFilterFactory

2019-07-04 Thread Shamik Bandopadhyay
Hi, I'm using EdgeNGramFilterFactory to support partial search. Here's my field definition. I run into an issue when I'm trying a numeric terms in search. For e.g. if I search for "72 hours", EdgeNGramFilterFactory ignores 72 and only stores hou and hour in index. Since