mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
lucene 4: comment on adding DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS
This commit is contained in:
parent
e9f8d0c722
commit
faf3e0e857
@ -37,7 +37,7 @@ import static org.elasticsearch.common.xcontent.support.XContentMapValues.*;
|
||||
*
|
||||
*/
|
||||
public class TypeParsers {
|
||||
|
||||
|
||||
public static final String INDEX_OPTIONS_DOCS = "docs";
|
||||
public static final String INDEX_OPTIONS_FREQS = "freqs";
|
||||
public static final String INDEX_OPTIONS_POSITIONS = "positions";
|
||||
@ -113,6 +113,7 @@ public class TypeParsers {
|
||||
}
|
||||
}
|
||||
|
||||
// LUCENE 4 UPGRADE: when ew move into feature mode, we need to support DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS
|
||||
private static IndexOptions nodeIndexOptionValue(final Object propNode) {
|
||||
final String value = propNode.toString();
|
||||
if (INDEX_OPTIONS_POSITIONS.equalsIgnoreCase(value)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user