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

ES not indexing numbers?

shawn

Well-known member
#1
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.
 

CyclingTribe

Well-known member
#4
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.
 

shawn

Well-known member
#8
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?
 

shawn

Well-known member
#9
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.
 

digitalpoint

Well-known member
#10
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.

http://xenforo.com/community/resources/change-analyzer-for-enhanced-search.643/