Re: Sorting and range filtering semantic versions

2015-03-17 Thread Mike Turley
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 version

Re: Sorting and range filtering semantic versions

2015-01-26 Thread joergpra...@gmail.com
Range and sort are two different challenges. There is one solution for sort using a custom analyzer. You can create binary sort keys for natural sort. Use https://github.com/jprante/elasticsearch-analysis-naturalsort and try this example PUT /test/ { "index": { "analysis": {

Sorting and range filtering semantic versions

2015-01-25 Thread Eric Smith
I am trying to figure out some sort of indexing scheme where I can do range filters on semantic versions . 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