Skip to content

26186 returns 261872T00 but not 261860000, why? #3151

Answered by rbayet
stravanato asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @stravanato,

Concerning

So I was trying to do the tweak on reference analyzer through the XML configuration to allow ignoring trailing 0, while keep the complete form.

Come to think of it, you don't really need to "keep the complete" form since when you use a given field/attribute for searching, Elasticsearch will re-apply the same analyzer to your input string.
So if you push "261860000" through an analyzer that trims trailing 0s, it will index "26186".
But when you search for "261860000" it will also trim the trailing 0s, so it will actually search for "26186" and you'll get a match.

Concerning your exact question, yes, the idea was to add a filter after the "reference_word_deli…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@stravanato
Comment options

@rbayet
Comment options

Answer selected by stravanato
@stravanato
Comment options

@rbayet
Comment options

@stravanato
Comment options

@rbayet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #3149 on January 15, 2024 10:45.