Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search field:number on stackoverflow dataset returns no document with dynamic index config #3542

Closed
fmassot opened this issue Jun 11, 2023 · 1 comment · Fixed by #3543
Closed
Labels
bug Something isn't working high-priority

Comments

@fmassot
Copy link
Contributor

fmassot commented Jun 11, 2023

Quickwit version: main branch

answerId:"7" or answerId:7 queries do not return documents.

type:answer returns documents.

Here is the emitted tantivy query:

BooleanQuery { subqueries: [(Should, TermQuery(Term(field=3, type=Json, path=answerId, type=U64, 20431))), (Should, TermQuery(Term(field=3, type=Json, path=answerId, type=Str, "20431")))] }

I think we should emit TermQuery(Term(field=3, type=Json, path=answerId, type=I64, 20431), not U64.

Index config used:

version: 0.6

index_id: stackoverflow

doc_mapping:
  mode: dynamic
  field_mappings:
    - name: title
      type: text
      tokenizer: default
      record: position
      stored: true
    - name: body
      type: text
      tokenizer: default
      record: position
      stored: true
    - name: creationDate
      type: datetime
      fast: true
      input_formats:
        - rfc3339
      precision: seconds
  timestamp_field: creationDate

search_settings:
  default_search_fields: [title, body]

indexing_settings:
  commit_timeout_secs: 10
@fmassot fmassot added bug Something isn't working high-priority labels Jun 11, 2023
@fmassot fmassot changed the title Search answerId:7 on stackoverflow dataset returns no document with dynamic index config Search field:number on stackoverflow dataset returns no document with dynamic index config Jun 11, 2023
@fmassot
Copy link
Contributor Author

fmassot commented Jun 11, 2023

Bug identified in tantivy quickwit-oss/tantivy#2088

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant