Skip to main content

"This search query matches too many different words. Try making it less general" - Error

Comments

2 comments

  • Matt Kearse

    What is the data type of recordIdField? The Geneious local database is only supposed to advertise that it supports range queries as a valid option for numeric and date fields, but there isn't anything stopping you from passing in a range query on other data types if you use the Geneious API rather than the Geneious UI.

    It seems like on non-numeric fields at least, Lucence (which is the search library Geneious uses), won't handle it well. There is some information on why this happens at https://dalelane.co.uk/blog/?p=2081

    There probably isn't anything you can do about this for non-numeric fields. But if your field is currently non-numeric, you might get it to work by changing it to a numeric field.

    0
  • Guzman

    The field type is a String indeed.

    I ended up doing the following workaround:

    Instead of using Condition.IN_RANGE, I do batches of 8192 strings, and then used a Condition.EQUALS for each string, and make an OR query with all of them. Not too elegant but worked.

    0

Please sign in to leave a comment.