Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

search: integer and float don’t support exact match #874

@TanyaStere42

Description

@TanyaStere42

Expected Behavior

Users can get exact matches back for integers and floats in either individual or sighting search

Current Behavior

  1. open individual search
  2. set sighting count filter to “equals”
  3. enter 1
  4. click go
  5. wait. no results are returned

there is an error

"root_cause": [
      {
        "col": 97, 
        "line": 1, 
        "reason": "[range] query does not support [eq]", 
        "type": "parsing_exception"
      }
    ],

QA Verification

Default fields (the individual search sighting count is the only default search we have for this issue)

  • Individual search, set sighting count filter to "equals"
  • enter an integer (i.e., 1)
  • click go
  • results returned

Custom fields

  • Create a custom number field for a sighting
  • Sighting search, set custom field filter to "equals"
  • enter an integer (i.e., 1)
  • click go
  • results returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions