Sorting by locale

2014-01-03 Thread Mindaugas Žakšauskas
Hello, We are in progress of migrating from Lucene 3.6.2 to the latest 4.6.0. One of many issues we're having is the absence of SortField constructor which had Locale parameter. I was able to trace a similar problem/discussion at http://lucene.472066.n3.nabble.com/getLocale-of-SortField-td4076562

Re: Slow Index Writes

2014-01-03 Thread Ian Lea
You will indeed get poor performance if you commit for every doc. Can you compromise and commit every, say, 1000 docs, or once every few minutes, or whatever makes sense for your app. Or look at lucene's near-real-time search features. Google "Lucene NRT" for info. Or use Elastic Search. -- I

Slow Index Writes

2014-01-03 Thread Klaus Schaefers
Hi, I am trying to use a lucene as a kind of key value store, but I encountered some bad performance issues. When I try to add my data as documents to the index I get an average write rate of 3 documents / second!! This seems to me ridiculously slow and I guess I must have somewhere an error. Plea

TieredMergePolicy and Doc ordering

2014-01-03 Thread Ramprakash Ramamoorthy
Team, I'm using Lucene 4.4 and am indexing my documents using TieredMergePolicy. The documents I index have an incremental ID field. From the javadoc, I see that, tiered merge policy merges non adjacent segments. However, when I try to search through in my test environment, I get the search resul