Questions tagged [lucene.net]

Lucene.NET is a source code, class-per-class, API-per-API, algorithmic port of the Java Lucene search engine to the C# and .NET platform utilizing the Microsoft .NET Framework and .NET Standard. NOTE: You should almost always include the [lucene] tag when using this one. The Lucene.NET design is similar to its Java counterpart and you are more likely to get a satisfactory answer when it is included.

1845 questions
12
votes
2 answers

Is Lucene.Net suitable as the search engine for frequently changing content?

Is Lucene.Net suitable as the search engine for frequently changing content? Or more specificically, can anybody give a subjective opinion on how quickly lucene.net indexes can be updated. Any other approaches to searching frequently changing…
Anthony Carroll
  • 449
  • 2
  • 13
12
votes
4 answers

C#: Could not load types from assembly

After adding Lucene.net and Lucene.net Contrib to a C# MVC3, I get the message below after the first successful run. After receiving this error, I need to completely wipe C:\Users\Me\AppData\Local\Temp\Temporary ASP.NET Files before I can run the…
Saustrup
  • 758
  • 2
  • 7
  • 18
11
votes
4 answers

Using a Combination of Wildcards and Stemming

I'm using a snowball analyzer to stem the titles of multiple documents. Everything works well, but their are some quirks. Example: A search for "valv", "valve", or "valves" returns the same number of results. This makes sense since the snowball…
SharpBarb
  • 1,590
  • 3
  • 16
  • 40
11
votes
2 answers

Exact phrase search using Lucene.net

I am having trouble searching for an exact phrase using Lucene.NET 2.0.0.4 For example I am searching for "scope attribute sets the variable" (including quotes) but receive no matches, I have confirmed 100% that the phrase exists. Can anyone…
Ash
  • 60,973
  • 31
  • 151
  • 169
11
votes
7 answers

How to update a Lucene.NET index?

I'm developing a Desktop Search Engine in Visual Basic 9 (VS2008) using Lucene.NET (v2.0). I use the following code to initialize the IndexWriter Private writer As IndexWriter writer = New IndexWriter(indexDirectory, New StandardAnalyzer(),…
user57175
  • 3,284
  • 9
  • 32
  • 26
11
votes
2 answers

Paging using Lucene.net

I'm working on a .Net application which uses Asp.net 3.5 and Lucene.Net I am showing search results given by Lucene.Net in an asp.net datagrid. I need to implement Paging (10 records on each page) for this aspx page. How do I get this done using…
user40907
  • 1,532
  • 5
  • 24
  • 33
11
votes
2 answers

Are there any books on Lucene.NET

I have searched on amazon and could not find a book on lucene.net. Have you guys came across a decent book on lucene.net?
Luke101
  • 63,072
  • 85
  • 231
  • 359
11
votes
2 answers

Can someone give me a high overview of how lucene.net works?

I have an MS SQL database and have a varchar field that I would like to do queries like where name like '%searchTerm%'. But right now it is too slow, even with SQL enterprise's full text indexing. Can someone explain how Lucene .Net might help…
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
11
votes
2 answers

How do you implement a custom filter with Lucene.net?

The code below is from the Lucene In Action book (originally in Java). It's for building a list of 'allowed' documents (from a user permission point of view) to filter search results with. The problem is the termsDocs.Read() method does not accept…
Nick
  • 5,616
  • 10
  • 52
  • 72
10
votes
2 answers

Lucene.Net writing/reading synchronization

Could I write (with IndexWriter) new documents into index while it is opened for reading (with IndexReader)? Or must I close reading before writing? Could I read/search documents (with IndexReader) in index while it is opened for writing (with…
Edward83
  • 6,664
  • 14
  • 74
  • 102
10
votes
2 answers

Where has Lucene.Net.Highlight gone?

I'm trying to figure out where Lucene.Net.Highlight.dll and the corresponding formatting classes (such as SimpleHTMLFormatter) have gone to. The last time I downloaded Lucene.Net this assembly was packaged up in the zip file, however this isn't the…
Justin
  • 84,773
  • 49
  • 224
  • 367
10
votes
2 answers

Lucene and Special Characters

I am using Lucene.Net 2.0 to index some fields from a database table. One of the fields is a 'Name' field which allows special characters. When I perform a search, it does not find my document that contains a term with special characters. I index my…
Brandon
  • 10,744
  • 18
  • 64
  • 97
10
votes
1 answer

Interesting Lucene.net Exception

According to this or this, I used the same indexsearcher by multiple thread. But when I switched from FsDirectory to MMapDirectory, I got interesting exceptions. This work fine: static void Main(string[] args) { DirectoryInfo directoryInfo =…
Tamás Varga
  • 635
  • 5
  • 17
10
votes
3 answers

Need to know pros and cons of using RAMDirectory

I need to improve performance of my Lucene search query. Can I use RAMDirectory?Does it optimize performance?Is there any index size limit for this? I would appreciate if someone could list pros and cons of using a RAMDirectory. Thanks.
user43498
  • 127
  • 1
  • 5
10
votes
1 answer

Major differences between Lucene.Net 2.9 and 3.0

I have been snooping around trying to find some release notes for Lucene.Net 3.0 and so far have been unsuccessful. Currently we use Lucene.Net 2.9, but its a memory hog so I am trying to find out if Lucene.Net 3.0 has improved memory…
Kevin
  • 2,752
  • 1
  • 24
  • 46