-1

I want to grab some data from lucene index file. But I can't read it.

I try to use Luke, but it always crashes with java.lang.OutOfMemoryError: Java heap space. Note -Xmx can't help me. I try -Xmx512, -Xmx1024 and even -Xmx2048.

I try to use Solr also, but gets java.lang.OutOfMemoryError: Java heap space too.

Any ideas how I can extract some data from Lucene?

P. S. I use lucene 2.3.0. My index file is 1.8 Gb size.

Xupypr MV
  • 935
  • 10
  • 18

2 Answers2

0

What size is the data you are trying to fetch? Maybe the result set is too large to handle?

Martin S Ek
  • 2,043
  • 2
  • 16
  • 22
  • I can't even start Luke or Solr with my database. – Xupypr MV Sep 01 '11 at 07:59
  • You probably have to use a Luke version that can read older indexes. What Luke version are you using? Here are the Luke versions: http://code.google.com/p/luke/downloads/list And here an interesting topic: http://code.google.com/p/luke/issues/detail?id=40 – Martin S Ek Sep 01 '11 at 08:15
  • The same sh*t with `Luke 1.0.1` (It supports Lucene 2.3.0 as i can see in: http://code.google.com/p/luke/wiki/Compatibility ). I started it as: `java -jar -Xms512m -Xmx2048m lukeall-1.0.1.jar` – Xupypr MV Sep 01 '11 at 08:23
0

I create my own simple lucene client, based on org.apache.lucene.search.Searcher. And grab data that I want.

Xupypr MV
  • 935
  • 10
  • 18