Hello
In my textual data, I have structures like this:
ст. ст. 40, 131, 132, 176-178, 183, ч. 2 ст. 187, 188, 184, 189, 194 KK
Where KK is the name of a codex, ст. ст., or ст. mean article, ч. mean part.
So I want Elasticsearch to store them like inverted indexes (similar to text fields) and inverted indexes are
40 KK, 131 KK, ..... 194 KK.
So I have a Python code that implements this and I plan to form a string with delimiters like simply ",". Then use the built-in tokeniser so Elasticsearch will build me an inverted index as I want.
My question is if there is a better solution like writing my own analyzer by cloning and modifying an existing one and injecting it into the elastic structure. Or I missed something and I can do the same with already existing analyzers.
Thanks in advance for your reply.