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/6a3535da-76d8-4dff-b2e6-114ea83cd639%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to