1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ES not indexing numbers?

Discussion in 'Enhanced Search Support' started by shawn, Nov 30, 2012.

  1. shawn

    shawn Well-Known Member

    Any ideas where to start looking for the problem? Everything else seems fine at the moment, but I realized that any searches for numbers come back empty.
  2. Slavik

    Slavik XenForo Moderator Staff Member

    Any custom mapping / stemming or word blocklists?
  3. shawn

    shawn Well-Known Member

    Not that I recall.
  4. CyclingTribe

    CyclingTribe Well-Known Member

    Just wondering if this is a string length issue or character type issue - when you say numbers, do you mean short numbers such a 5 or 13 or 323 - or do larger numbers not work too, such as 20000 or 75000?

    My thinking is that there is a general string length restriction (usually 3/4 chars [unless you alter it in the settings]) so if you're searching for smaller values such as 15 it may not work anyway because it is only two characters long.
    Digital Doctor likes this.
  5. Digital Doctor

    Digital Doctor Well-Known Member

    You can change the min character length in MySQL ... at least for the non-ES search. Probably for both.
  6. Slavik

    Slavik XenForo Moderator Staff Member

    Es min word length is defined in admin.php?options/list/searchOptions
  7. shawn

    shawn Well-Known Member

    Minimum word length is set to two characters. It's not returning four character numbers (2003, etc)
  8. shawn

    shawn Well-Known Member

    Rebuilt the indices just for fun. No change.

    Interestingly, mixes of letters and numbers (M3, etc) work fine, but strings only of numbers do not. How would I go about checking the maps and blocklists?
  9. shawn

    shawn Well-Known Member

    Just an update: I upgraded java to the current version, upgraded ES to 0.19.12, rebuilt the indices, and it seems to be working properly again. It was on 0.18.?? before.
    Brandon Sheley likes this.
  10. digitalpoint

    digitalpoint Well-Known Member

    It's the tokenizer you have it set to use (or just the default one). Most don't support indexing numbers (they will index alpha-numeric words though as you noticed).

    This is the settings I use for digitalpoint.com which breaks apart words on punctuation (for example you could find a post that had "www.digitalpoint.com" in it by searching for "digitalpoint"... normally that's not the case), AND it indexes numbers with the pattern tokenizer.


Share This Page