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

Using Server.MapPath() inside a static field in ASP.NET MVC

I'm building an ASP.NET MVC site where I'm using Lucene.Net for search queries. I asked a question here about how to properly structure Lucene.Net usage in an ASP.NET MVC application and was told that the best method is to declare the my IndexWriter…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
73
votes
2 answers

How to specify two Fields in Lucene QueryParser?

I read How to incorporate multiple fields in QueryParser? but i didn't get it. At the moment i have a very strange construction like: parser = New QueryParser("bodytext", analyzer) parser2 = New QueryParser("title", analyzer) query =…
Tyzak
  • 2,430
  • 8
  • 38
  • 52
62
votes
5 answers

How would one use Lucene.NET to help implement search on a site like Stack Overflow?

I've asked a simlar question on Meta Stack Overflow, but that deals specifically with whether or not Lucene.NET is used on Stack Overflow. The purpose of the question here is more of a hypotetical, as to what approaches one would make if they were…
casperOne
  • 73,706
  • 19
  • 184
  • 253
60
votes
4 answers

Configure Lucene.Net with SQL Server

Has anyone used Lucene.NET rather than using the full text search that comes with sql server? If so I would be interested on how you implemented it. Did you for example write a windows service that queried the database every hour then saved the…
solrevdev
  • 8,863
  • 11
  • 41
  • 49
52
votes
6 answers

Search Engine - Lucene or Solr

We need to integrate a search engine in our Product Catalog management software. the catalog is expected to have more than 4-5 mn. records with relational data spread over several tables. Our dev platform is Asp.Net 3.5 and we have done some…
Vikram
  • 6,865
  • 9
  • 50
  • 61
42
votes
1 answer

solr search for documents where a field doesn't exist

How do I search for those document in a SOLR index which do not contain a specified field?
Midhat
  • 17,454
  • 22
  • 87
  • 114
42
votes
11 answers

What is best and most active open source .Net search technology?

I'm trying to decide on an open source search/indexing technology for a .Net project. It seems like the standard out there for Java projects is Lucene, but as far as .Net is concerned, the Lucene.Net project seems to be pretty inactive. Is this…
jamesaharvey
  • 14,023
  • 15
  • 52
  • 63
40
votes
5 answers

SQL Server 2008 Full Text Search (FTS) versus Lucene.NET

I know there have been questions in the past about SQL 2005 versus Lucene.NET but since 2008 came out and they made a lot of changes to it and was wondering if anyone can give me pros/cons (or link to an article).
ajma
  • 12,106
  • 12
  • 71
  • 90
34
votes
3 answers

Indexing .PDF, .XLS, .DOC, .PPT using Lucene.NET

I've heard of Lucene.Net and I've heard of Apache Tika. The question is - how do I index these documents using C# vs Java? I think the issue is that there is no .Net equivalent of Tika which extracts relevant text from these document types. UPDATE…
dana
  • 17,267
  • 6
  • 64
  • 88
34
votes
4 answers

How to incorporate multiple fields in QueryParser?

Dim qp1 As New QueryParser("filename", New StandardAnalyzer()) Dim qp2 As New QueryParser("filetext", New StandardAnalyzer()) . . I am using the 'Lucene.Net' library and have the following question. Instead of creating two separate QueryParser…
user57175
  • 3,284
  • 9
  • 32
  • 26
34
votes
5 answers

Lucene.Net Best Practices

What are the best practices in using Lucene.Net? or where can I find a good lucene.net usage sample?
Elias Haileselassie
  • 1,385
  • 1
  • 18
  • 26
31
votes
6 answers

How to make the Lucene QueryParser more forgiving?

I'm using Lucene.net, but I am tagging this question for both .NET and Java versions because the API is the same and I'm hoping there are solutions on both platforms. I'm sure other people have addressed this issue, but I haven't been able to find…
Winston Fassett
  • 3,500
  • 3
  • 36
  • 29
29
votes
1 answer

Implement Lucene on Existing .NET / SQL Server stack with multiple webservers

I want to look at using Lucene for a fulltext search solution for a site that I currently manage. The site is built entirely on SQL Server 2008 / C# .NET 4 technologies. The data I'm looking to index is actually quite simple, with only a couple of…
growse
  • 3,554
  • 9
  • 43
  • 66
28
votes
3 answers

Lucene: What is the difference between Query and Filter

Lucene query vs filter? They both does similar things like termquery filters by term value, filter i guess is there for similar purpose. When would you use filter and when query? Just starting on lucene today so trying to clear concept
mamu
  • 12,184
  • 19
  • 69
  • 92
28
votes
3 answers

Concurrency in Lucene.NET.

I want to use Lucene.NET for fulltext search shared between two apps: one is an ASP.NET MVC application and the other one is a console application. Both applications are supposed to search and update index. How the concurrency should be handled? I…
Eugeniu Torica
  • 7,484
  • 12
  • 47
  • 62
1
2 3
99 100