Questions tagged [ramdirectory]

10 questions
7
votes
1 answer

Mocking and Unit Testing Solr and Lucene Index

We need control of the data in the production solr index and we need it to be compatible with new development. Ideally, we'd like to mock the index on local machines, query with it solr and write unit tests to query it for quicker…
nflacco
  • 4,972
  • 8
  • 45
  • 78
5
votes
1 answer

How to write a Lucene.Net RAMDirectory back to disk?

I have been working with Lucene.Net and FSDirectory for some time now, so I am familiar with the basics of working with it. However, I am now attempting to rewrite some key code by using RAMDirectory's when possible to speed up index use. Loading an…
devios1
  • 36,899
  • 45
  • 162
  • 260
3
votes
1 answer

null pointer exception in indexwriter.close (using ramdirectory in google app engine)

I am working on getting lucene indexing working on Google App Engine. I am using a ramdirectory to make the index and then serializing it (the ramdirectory object) to memcache and blobstore for persistent storage.…
2
votes
1 answer

How to Synchronize RAMDirectory with FSDirectory in Apache Lucene 6.5

my bad for poorly drafted question I am trying to Take Backup of RAMDirectory index into a FileSystem Directory Path for recovery of an index in case of any crash. I have tried these approaches Directory.copy(ramDir, FSDirectory.open(indexDir),…
Prakhar Nigam
  • 678
  • 3
  • 15
1
vote
0 answers

Storing lucene index in db (no JDBCDirectory, no file system)

Is there any good way to storing lucene index in db without any external library, that touches connection layer (like JDBCDirectory) and also without using file system (even temporary). RAMDirectory would be fine for me if I could get from it…
m4tius
  • 11
  • 1
0
votes
1 answer

How to use RAMDirectory and avoid OutOfMemoryException if the object size exceeds 2GB

I have been putting my entire index into memory using RAMDirectory to improve performance and it worked beautifully until my index grew and grew. Now I am getting OutOfMemoryException. While my index on disk is 1.24GB, I suspect that the object…
Barka
  • 8,764
  • 15
  • 64
  • 91
0
votes
1 answer

Where are lucene RAMDirectory benchmarks and how to benchmark

I am hoping someone can point to on how to benchmark my lucense RAMDirectory index? I have about 300-500K documents indexed (less than 80 characters per document) and I want to benchmark how fast the in-memory RAMDirectory is. At a very high level,…
cool breeze
  • 4,461
  • 5
  • 38
  • 67
0
votes
1 answer

Lucene BooleanQuery wrong result

I created a Lucene RAMDirectory to collect data from different sources and make them quickly searchable. I spent many hours to understand the different analyzers and index strategies, but in some cases the query result is not the expected. Here is a…
Dimnox
  • 441
  • 1
  • 6
  • 13
0
votes
1 answer

Lucene changing from RAMDirectory to FSDIrectory - Content-Field missing

I'm just a lucene starter and and i got stuck on a problem during a change from a RAMDIrectory to a FSDirectory: First my code: private static IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_43, new…
Smoki
  • 551
  • 2
  • 9
  • 28
-1
votes
1 answer

RAMDirectory Lucene

I am trying to index text files and using the RAMDirectory for fast indexing and was wondering if there is a way to clear the previous RAMDirectory to prevent duplicates?
P Topa
  • 11
  • 3