Thanks Andrezj ! Works for me, win7 and lucene 2.9 and JRE 1.6.
2011/10/4 janwen tom.grade1...@163.com
thanks so much.I am going to upgrade the lucene to version3.4 in my
project.I'll try the new version luke.thanks for hard-work
On 2011-10-3 17:52, Andrzej Bialecki wrote:
Hi,
I'm
You may look this:
private static IndexSearcher indexSearcher = null;
public synchronized IndexSearcher newIndexSearcher() {
try {
if (null == indexSearcher) {
Directory directory = FSDirectory.open(new
File(Config.DB_DIR+/rssindex));
indexSearcher = new
like this?
public synchronized IndexSearcher newIndexSearcher() {
try {
// semaphore.acquire();
if (null == indexSearcher) {
Directory directory = FSDirectory.open(new
File(Config.DB_DIR+/rssindex));
indexSearcher = new IndexSearcher(IndexReader.open(directory, true));
} else {
I think Anshum is right。
And may your range is too big and is sorting
2010/4/23 Anshum ansh...@gmail.com
Hi Ravi,
Adding to what Erick said, you could do index the numbers as numeric fields
instead of strings. This should improve things for you by a considerable
amount.
P.S: I'm talking