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
7
votes
2 answers

Lucene - searching for a numeric value field

ok, i have searched for this in the past two hours with results that only give's tips, and not even one complete code to the rescue ( how would noobs learn if they cant see some samples ? ) i have created an index like so: Directory directory =…
Rafael Herscovici
  • 16,558
  • 19
  • 65
  • 93
7
votes
1 answer

Multiple Indexes search in Lucene.Net

I have multiple lucene.net indexes that I would need to search on for a query string. So will I need to open a new IndexSearcher on all these indexes or can I achieve this with a single IndexSearcher? Thanks
RAC
  • 73
  • 1
  • 3
7
votes
7 answers

Let Lucene include spaces in term for exact match

I want my Lucene query to contain something similar to: companyNam:mercedes trucks Where it will do an exact match for the string "mercedes trucks" in the companyName field. The companyName is an untokenized field, but anything with a space…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
7
votes
2 answers

NHibernate-based Full-Text Search

I want to integrate full-text search into a .NET application with [Fluent] NHibernate-based data access. So far Lucene.NET and NHibernate Search combination appears to be the most reasonable option there. However, there are several projects built on…
7
votes
3 answers

What is the best way to parse Microsoft Office and PDF documents?

I'm developing a Desktop Search Engine using VB9 (VS2008) and Lucene.NET. The Indexer in Lucene.NET accepts only raw text data and it is not possible to directly extract raw text from a Microsoft Office (DOC, DOCX, PPT, PPTX) and PDF documents. What…
user57175
  • 3,284
  • 9
  • 32
  • 26
7
votes
2 answers

Lucene.Net: How can I add a date filter to my search results?

I've got my searcher working really well, however it does tend to return results that are obsolete. My site is much like NerdDinner whereby events in the past become irrelevant. I'm currently indexing like this note: my example is in VB.NET, but I…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
7
votes
3 answers

What's the best way to implement a fulltext search for an ASP.NET MVC application?

I've built an ASP.NET MVC application with MVC 2.0 and Fluent NHibernate (hided behind repositories for some reasons). The application represents a quite complex domain with some different objects like users, messages, comments, files and…
asp_net
  • 3,567
  • 3
  • 31
  • 58
7
votes
1 answer

Sitecore syncMaster index strategy not working

I have a rendering component that runs a search using the Lucene index to populate itself. We have two indexes defined; Master & Web. When in the experience editor it uses the Master index, and the Web index for the actual site. We've configured…
David Masters
  • 8,069
  • 2
  • 44
  • 75
7
votes
2 answers

Lucene IndexWriter slow to add documents

I wrote a small loop which added 10,000 documents into the IndexWriter and it took for ever to do it. Is there another way to index large volumes of documents? I ask because when this goes live it has to load in 15,000 records. The other question is…
griegs
  • 22,624
  • 33
  • 128
  • 205
7
votes
2 answers

Search across fields in Lucene

I'm a complete noobie with Lucene and so far a huge, huge fan. I'm now looking for some resources on how to store data and search through c# and dotnet. Any LINQ samples would be a big bonus to me. In particular if I have a document that has two…
griegs
  • 22,624
  • 33
  • 128
  • 205
7
votes
3 answers

Lucene Search for japanese characters

I have implemented lucene for my application and it works very well unless you have introduced something like japanese characters. The problem is that if I have japanese string こんにちは、このバイネイです and I search with こ that is the first character than it…
Pranali Desai
  • 974
  • 1
  • 7
  • 22
7
votes
2 answers

How do i delete/update a doc with lucene?

I am creating a tagging system for my site I got the basics of adding a document to lucene but i can seem to figure out how to delete a document or update one when the user changes the tags of something. I found pages that say use the document index…
user34537
7
votes
1 answer

Lucene.NET (strings fuzzy matching)

Could anyone give me an example about how to do fuzzy matching of two strings using Lucene.NET (or using Java version of Lucene, or in any other language that has port of Lucene).
user306080
  • 1,409
  • 3
  • 16
  • 37
7
votes
2 answers

How to implement search with multiple filters using lucene.net

I'm new to lucene.net. I want to implement search functionality on a client database. I have the following scenario: Users will search for clients based on the currently selected city. If the user wants to search for clients in another city, then…
MSRS
  • 803
  • 7
  • 20
7
votes
4 answers

Delete all indices in Lucene.net

I want to delete all the previously created indices. I am using Lucene.net. I tried the following: Term term = new Term(); //empty because I want to delete all the indices IndexReader rdr =…
k03123