Skip to content

Commit

Permalink
Fix default IndexOptions for text based fields (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
aprudhomme authored Nov 2, 2023
1 parent 3027a0c commit 83ee570
Show file tree
Hide file tree
Showing 5 changed files with 581 additions and 363 deletions.
5 changes: 3 additions & 2 deletions clientlib/src/main/proto/yelp/nrtsearch/luceneserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,11 @@ enum FieldType {

//How the tokens should be indexed.
enum IndexOptions {
DOCS_FREQS_POSITIONS = 0; // Index doc ids, term frequencies and positions.
DEFAULT = 0; // Use field default index options: ATOM=DOCS, TEXT=DOCS_FREQS_POSITIONS
DOCS = 1; // Index only doc ids (for binary search).
DOCS_FREQS = 2; // Index doc ids and term frequencies.
DOCS_FREQS_POSITIONS_OFFSETS = 3; // Index doc ids, term frequencies, positions and offsets.
DOCS_FREQS_POSITIONS = 3; // Index doc ids, term frequencies and positions.
DOCS_FREQS_POSITIONS_OFFSETS = 4; // Index doc ids, term frequencies, positions and offsets.
}

//Whether/how term vectors should be indexed.
Expand Down
Loading

0 comments on commit 83ee570

Please sign in to comment.