mirror of https://github.com/apache/lucene.git
Let WordDelimiterGraphFilterFactory propagate ignoreKeywords flag (#12525)
* Let WordDelimiterGraphFilterFactory propagate ignoreKeywords flag fixes https://github.com/apache/lucene/issues/12522 * Document changes * Align with default in code
This commit is contained in:
parent
203f506130
commit
502f15a89b
|
@ -404,6 +404,8 @@ New Features
|
|||
* GITHUB#12479: Add new Maximum Inner Product vector similarity function for non-normalized dot-product
|
||||
vector search. (Jack Mazanec, Ben Trent)
|
||||
|
||||
* GITHUB#12525: `WordDelimiterGraphFilterFactory` now supports the `ignoreKeywords` flag (Thomas De Craemer)
|
||||
|
||||
* GITHUB#12489: Add support for recursive graph bisection, also called
|
||||
bipartite graph partitioning, and often abbreviated BP, an algorithm for
|
||||
reordering doc IDs that results in more compact postings and faster queries,
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.apache.lucene.util.ResourceLoaderAware;
|
|||
* preserveOriginal="0" splitOnNumerics="1" splitOnCaseChange="1"
|
||||
* catenateWords="0" catenateNumbers="0" catenateAll="0"
|
||||
* generateWordParts="1" generateNumberParts="1" stemEnglishPossessive="1"
|
||||
* types="wdfftypes.txt" />
|
||||
* types="wdfftypes.txt" ignoreKeywords="0" />
|
||||
* </analyzer>
|
||||
* </fieldType></pre>
|
||||
*
|
||||
|
@ -100,6 +100,9 @@ public class WordDelimiterGraphFilterFactory extends TokenFilterFactory
|
|||
if (getInt(args, "stemEnglishPossessive", 1) != 0) {
|
||||
flags |= STEM_ENGLISH_POSSESSIVE;
|
||||
}
|
||||
if (getInt(args, "ignoreKeywords", 0) != 0) {
|
||||
flags |= IGNORE_KEYWORDS;
|
||||
}
|
||||
wordFiles = get(args, PROTECTED_TOKENS);
|
||||
types = get(args, TYPES);
|
||||
this.flags = flags;
|
||||
|
|
Loading…
Reference in New Issue