Did you ever find a good solution for this? I am trying to solve the same problem (just sorting, not range filtering).
On Monday, January 26, 2015 at 2:47:30 AM UTC-5, Eric Smith wrote: > > I am trying to figure out some sort of indexing scheme where I can do > range filters on semantic versions <http://semver.org/>. Values look > like these: > > "1.0.2.5", "1.10.2.5", "2.3.434.1" > > I know that I can add a separate field with the numbers padded out, but I > was hoping to have a single field where I could do things like this: > > "version:>1.0" "version:1.0.2.5" "version:1.0" "version:[1.0 TO 2.0]" > > I have created some pattern capture filters to allow querying partial > version numbers. I even created some pattern replacement filters to pad the > values out so that they could be lexicographically sorted, but those > filters only control the tokens that are indexed and not the value that is > used for sorting and range filters. > > Is there a way to customize the value that is used for sorting and range > filters? It seems like it just uses the original value and I don't have > any control of it? > > Any help would be greatly appreciated! > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2a80f6c9-ae8e-4df9-a1df-30e3eda6697f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
