lucene-index

Is it possible to re-generate Lucene index in background?

Hi there, Sometimes there is need to re-generate a lucene index, e.g. when something changes in the Compass mapping or in the way boosts are applied, or if something went corrupt for whatever reason. In my case, generation of the index takes about 5 to 6 hours, clearing the index before leads to data not being complete for this interva...

Deleting document by Term from lucene

The following code does not delete the document by Term as expected: RAMDirectory idx = new RAMDirectory(); IndexWriter writer = new IndexWriter(idx, new SnowballAnalyzer(Version.LUCENE_30, "English"), IndexWriter.MaxFieldLength.LIMITED); ...

Lucene indexing with for structured document where each text line has meta-data

Hi I have a document structure where each text line in the document has some meta-data associated with it. The search result must show the line and the meta-data for the line. Currently I am storing each such line as a Lucene documents and storing the metata-data as one of the non-indexed fields. That is I create and add a Lucene Docu...

How to define a boost factor to each term in each document during indexing?

I want to insert another score factor in Lucene's similarity equation. The problem is that I can't just override Similarity class, as it is unaware of the document and terms it is computing scores. For example, in a document with the text below: The cat is in the top of the tree, and he is going to stay there. I have an algorithm of ...

Lucene.net Fuzzy Phrase Search

Hi Guys, I have tried this myself for a considerable period and looked everywhere around the net - but have been unable to find ANY examples of Fuzzy Phrase searching via Lucene.NET 2.9.2. ( C# ) Is something able to advise how to do this in detail and/or provide some example code - I would seriously seriously appreciate any help as I ...