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

What's the most efficient way to retrieve all matching documents from a query in Lucene, unsorted?

I am looking to perform a query for the purposes of maintaining internal integrity; for example, removing all traces of a particular field/value from the index. Therefore it's important that I find all matching documents (not just the top n docs),…
devios1
  • 36,899
  • 45
  • 162
  • 260
6
votes
2 answers

How to perform full text search and indexing using ASP.NET Core?

I was looking at how to perform full-text searching and indexing similar to Whoosh in python. I have looked at Lucene.NET but it looks like it's not compatible with ASP.NET Core (2.0 or higher). Are there any other alternatives for a full-text…
Daniel
  • 343
  • 1
  • 4
  • 7
6
votes
3 answers

How to get more out of Lucene.net

I'm trying to incorporate Lucene.net in my web search. Currently I have a lucene.net index that contains +1 million documents with 7 fields each. The last field is the "all" field that has the content of the previous fields concatenated. Searching…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
6
votes
4 answers

Caching Lucene.net search results

I've used Lucene.net to implement search functionality (for both database content and uploaded documents) on several small websites with no problem. Now I've got a site where I'm indexing 5000+ documents (mainly PDFs) and the querying is becoming a…
Nick
  • 5,616
  • 10
  • 52
  • 72
6
votes
2 answers

StructureMap 'conditional singleton' for Lucene.Net IndexReader

I have a threadsafe object that is expensive to create and needs to be available through my application (a Lucene.Net IndexReader). The object can become invalid, at which point I need to recreate it (IndexReader.IsCurrent is false, need a new…
Gareth D
  • 885
  • 1
  • 9
  • 22
6
votes
1 answer

Lucene.NET 4.8 search not returning results

After an upgrade from Lucene 3.X to 4.8, a couple things had to be rewritten to make everything function again. I've tried multiple complete solutions (adjusted for our situation) from different tutorials, and many different tweaks and tests, but…
Kevin Sijbers
  • 814
  • 7
  • 19
6
votes
4 answers

What are the downsides of using Lucene?

I'm thinking about using Lucene in my project to do very fast searches. I know that Lucene creates its own files where it keeps all the data/indexes. I wonder what are the downsides of using Lucene? Are there any? Do you have to do anything with…
IAdapter
  • 62,595
  • 73
  • 179
  • 242
6
votes
1 answer

Lucene.Net: How can I add extra weight to a term?

My indexer indexes the title and the body of a post, but I'd like the words contained in the title of the post to carry more weight, and thus float to the top of the results. How can I add extra weight to the title words?
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
6
votes
3 answers

Avoid lucence QueryParser Parse exception?

On the 3rd line i get exceptions such as 'IOException: read past eof' and 'LookaheadSuccess: Error in the application.' Is there any way to avoid this? i hate the breaks and pressing continue twice everytime i execute a search Note i only notice…
user34537
6
votes
2 answers

Lucene.net 2.9.2 sorting (sort doesn't work)

I've got problem with sorting my lucene.net index in .NET. I tried almost every solution on stackoverflow and looking for google answers. I'm using Lucene.NET 2.9.2 and ASP.NET 2.0. I want to sort over string like in sql you can type 'order by Title…
r.piesnikowski
  • 2,911
  • 1
  • 26
  • 32
6
votes
2 answers

Matching entire sentence with spaces in lucene BooleanQuery

I have a search string , Tulip INN Riyadhh Tulip INN Riyadhh LUXURY Suites of Tulip INN RIYAHdhh I need search term , if i mention *Tulip INN Riyadhh* it has to return all the three above, i have restriction that i have to achieve this without…
Raghavan
  • 401
  • 6
  • 21
6
votes
3 answers

Lucene.Net and incubation status

I'm evaluating options to make our search more powerful on our .Net website. I need to look into whether we purchase software/hardware such as the Google Search Appliance (GSA) or develop the solution using a framework such as Lucene.Net We're a…
Perhentian
  • 860
  • 8
  • 12
6
votes
1 answer

Calculate the score only based on the documents have more occurance of term in lucene

I am started working on resume retrieval(document) component based on lucene.net engine. It works great, and it fetches the document and score it based on the the idea behind the VSM is the more times a query term appears in a document relative…
RameshVel
  • 64,778
  • 30
  • 169
  • 213
6
votes
1 answer

Is it possible to merge Lucene.NET indexes

I have a number of Lucene.NET indexes created for archive files. The indexes are created in an identical manner. The indexes don't change but each index takes days to complete. I want single application to query all indexes. I'm wondering if it is…
cymorg
  • 534
  • 2
  • 10
  • 27
6
votes
1 answer

RavenDB Map Reduce Distinct Index

We have an object with nested properties which we want to make easily searchable. This has been simple enough to achieve but we also want to aggregate information based on multiple fields. In terms of the domain we have multiple deals which have the…
Alex Jones
  • 61
  • 5