Re: Help with a fieldcomparator!

2015-01-16 Thread Victor Podberezski
Erik, Thanks for your reply. I wrote a simplification of the problem. Not only the values in the field that can be sorted are "val1, val2,..." . they can also be "patternX1, patternX2", etc. and in that case I need to sort according to different criteria. They're a lot of differents patterns but

Re: Help with a fieldcomparator!

2015-01-16 Thread Erick Erickson
Personally I would do this on the ingestion side with a new field. That is, analyze the input field when you were indexing the doc, extract the min value from any numbers, and put that in a new field. Then it's simply sorting by the new field. This is likely to be much more performant than reproces

Help with a fieldcomparator!

2015-01-16 Thread Victor Podberezski
I need a hand with a custom comparator. I have a field filled with words separated by spaces. Some words has numbers inside. I need to extract those numbers and sort the documents by this number. I need to get the lower if there are more than 1 number . For example: doc1 "val2 val3" --> 2

forceMerge(1) grows index and does not shrink back

2015-01-16 Thread Jürgen Albert
Hi, because we have constant updates on our index, we can't really close the index from time to time. Therefore we decided to trigger forceMerge when the traffic is lowest, the clean up. On our development laptops (Windows and Linux) it works as expected, but on the real Servers we have som