[jira] [Updated] (LUCENE-7827) disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester
[ https://issues.apache.org/jira/browse/LUCENE-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Khludnev updated LUCENE-7827: - Attachment: LUCENE-7827.patch Leaving only relevant changes in [^LUCENE-7827.patch] > disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester > -- > > Key: LUCENE-7827 > URL: https://issues.apache.org/jira/browse/LUCENE-7827 > Project: Lucene - Core > Issue Type: Improvement >Reporter: Mikhail Khludnev >Priority: Minor > Attachments: LUCENE-7827.patch, LUCENE-7827.patch, LUCENE-7827.patch, > LUCENE-7827.patch, LUCENE-7827.patch > > > The current code allows to set minPrefixChars=0, but it creates an > unnecessary {{textgrams}} field, and might bring significant footprint. > Bypassing it keeps existing tests green. > {code} > if (fieldName.equals("textgrams") && minPrefixChars > 0) { > TokenFilter filter = new > EdgeNGramTokenFilter(components.getTokenStream(), 1, minPrefixChars); > return new TokenStreamComponents(components.getTokenizer(), filter); > } else { > return components; // threre is no sense to go here if > minPrefixChars==0 and fieldName=="textgrams" > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-7827) disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester
[ https://issues.apache.org/jira/browse/LUCENE-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Khludnev updated LUCENE-7827: - Description: The current code allows to set minPrefixChars=0, but it creates an unnecessary {{textgrams}} field, and might bring significant footprint. Bypassing it keeps existing tests green. {code} if (fieldName.equals("textgrams") && minPrefixChars > 0) { TokenFilter filter = new EdgeNGramTokenFilter(components.getTokenStream(), 1, minPrefixChars); return new TokenStreamComponents(components.getTokenizer(), filter); } else { return components; // threre is no sense to go here if minPrefixChars==0 and fieldName=="textgrams" } {code} was:The current code allows to set minPrefixChars=0, but it creates an unnecessary {{textgrams}} field, and might bring significant footprint. Bypassing it keeps existing tests green. > disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester > -- > > Key: LUCENE-7827 > URL: https://issues.apache.org/jira/browse/LUCENE-7827 > Project: Lucene - Core > Issue Type: Improvement >Reporter: Mikhail Khludnev >Priority: Minor > Attachments: LUCENE-7827.patch, LUCENE-7827.patch, LUCENE-7827.patch, > LUCENE-7827.patch > > > The current code allows to set minPrefixChars=0, but it creates an > unnecessary {{textgrams}} field, and might bring significant footprint. > Bypassing it keeps existing tests green. > {code} > if (fieldName.equals("textgrams") && minPrefixChars > 0) { > TokenFilter filter = new > EdgeNGramTokenFilter(components.getTokenStream(), 1, minPrefixChars); > return new TokenStreamComponents(components.getTokenizer(), filter); > } else { > return components; // threre is no sense to go here if > minPrefixChars==0 and fieldName=="textgrams" > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-7827) disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester
[ https://issues.apache.org/jira/browse/LUCENE-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Khludnev updated LUCENE-7827: - Attachment: LUCENE-7827.patch Since I've made many {{private}} members {{protected}}, {{precommit}} requires to copy-paste javadocs for them [^LUCENE-7827.patch]. I fill like I'm doing something wrong. > disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester > -- > > Key: LUCENE-7827 > URL: https://issues.apache.org/jira/browse/LUCENE-7827 > Project: Lucene - Core > Issue Type: Improvement >Reporter: Mikhail Khludnev >Priority: Minor > Attachments: LUCENE-7827.patch, LUCENE-7827.patch, LUCENE-7827.patch, > LUCENE-7827.patch > > > The current code allows to set minPrefixChars=0, but it creates an > unnecessary {{textgrams}} field, and might bring significant footprint. > Bypassing it keeps existing tests green. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-7827) disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester
[ https://issues.apache.org/jira/browse/LUCENE-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Khludnev updated LUCENE-7827: - Attachment: LUCENE-7827.patch > disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester > -- > > Key: LUCENE-7827 > URL: https://issues.apache.org/jira/browse/LUCENE-7827 > Project: Lucene - Core > Issue Type: Improvement >Reporter: Mikhail Khludnev >Priority: Minor > Attachments: LUCENE-7827.patch, LUCENE-7827.patch, LUCENE-7827.patch > > > The current code allows to set minPrefixChars=0, but it creates an > unnecessary {{textgrams}} field, and might bring significant footprint. > Bypassing it keeps existing tests green. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-7827) disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester
[ https://issues.apache.org/jira/browse/LUCENE-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Khludnev updated LUCENE-7827: - Attachment: LUCENE-7827.patch [^LUCENE-7827.patch] also exposing final config to descendants and allow override {{buildDocument}} > disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester > -- > > Key: LUCENE-7827 > URL: https://issues.apache.org/jira/browse/LUCENE-7827 > Project: Lucene - Core > Issue Type: Improvement >Reporter: Mikhail Khludnev >Priority: Minor > Attachments: LUCENE-7827.patch, LUCENE-7827.patch > > > The current code allows to set minPrefixChars=0, but it creates an > unnecessary {{textgrams}} field, and might bring significant footprint. > Bypassing it keeps existing tests green. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-7827) disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester
[ https://issues.apache.org/jira/browse/LUCENE-7827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Khludnev updated LUCENE-7827: - Attachment: LUCENE-7827.patch > disable "textgrams" when minPrefixChars=0 AnalyzingInfixSuggester > -- > > Key: LUCENE-7827 > URL: https://issues.apache.org/jira/browse/LUCENE-7827 > Project: Lucene - Core > Issue Type: Improvement >Reporter: Mikhail Khludnev >Priority: Minor > Attachments: LUCENE-7827.patch > > > The current code allows to set minPrefixChars=0, but it creates an > unnecessary {{textgrams}} field, and might bring significant footprint. > Bypassing it keeps existing tests green. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org