Skip to content

Commit

Permalink
Only index fields which are not NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
mnunberg committed Jul 10, 2018
1 parent becee97 commit cc54f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int AddDocumentCtx_SetDocument(RSAddDocumentCtx *aCtx, IndexSpec *sp, Doc
for (int i = 0; i < doc->numFields; i++) {
const DocumentField *f = doc->fields + i;
FieldSpec *fs = IndexSpec_GetField(sp, f->name, strlen(f->name));
if (fs) {
if (fs && f->text) {

aCtx->fspecs[i] = *fs;
if (dedupe[fs->index]) {
Expand Down

0 comments on commit cc54f9b

Please sign in to comment.