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.
Questions tagged [lucene.net]
1845 questions
0
votes
1 answer
Using List of (T) with Lucene.net in vb.net
i want to use an List to store the title, path,... from Documents.
I declared the list like this:
Dim MyDocuments As New List(Of Document)
But i don't really know how to handle the list.
i want to use the list instead of an ReDim Array.
For i =…

tim
- 197
- 1
- 2
- 10
0
votes
2 answers
Lucene - Querying multiple terms in a field
For simplicity sake, consider two documents with the following fields and values:
RecordId: "12345"
CreatedAt: "27/02/1992"
Event: "Manchester, Dubai, Paris"
Event: "Manchester, Rome, Madrid"
Event: "Madrid, Sidney"
RecordId: "99999"
CreatedAt:…

pelican_george
- 961
- 2
- 13
- 33
0
votes
1 answer
Is it possible to sort Lucene search results by creation sequence/date?
Simple and straight forward question:
Is it possible to sort search results according to their creation sequence/date?Adding a date field and sorting by it would be an option.
However, the index already exists and contains a huge set of documents…

pelican_george
- 961
- 2
- 13
- 33
0
votes
0 answers
Lucene searching and updating issues
I created a task in scheduled task to update my lucene index. Everything is going well until I searched in my lucene and the task to update the index run at the same time.
My Code in Lucene is to delete the old index and create a new one, I know…

Gabriel Llorico
- 1,783
- 1
- 13
- 23
0
votes
1 answer
Orchard Lucene Custom Search Service with Query Grouping and Numeric Range Query
I'm trying to implement my own custom SearchService. As I understand it
// If I wanted to query "+name:camera +price:[100 TO 150] +location:thailand"
searchBuilder.WithField("name",…

Twisted Whisper
- 1,166
- 2
- 15
- 27
0
votes
1 answer
Lucene.net is not separating keywords from search string
I have implemented a site search feature on a website built on Umbraco CMS. For site search we are using Lucene.net which easily integrates with Umbraco.
The search works perfectly if I use a search string with a single keyword. For example there is…

TejSoft
- 3,213
- 6
- 34
- 58
0
votes
1 answer
lucene.net slow when searching on only 500k records
I am using lucene.net for searching product bill details. totally in this 500k (document) records & 6 fields added to created documents.
I use lucene.net version 3.0.3.0.
public DataSet Search(string criterion, string term)
{
string indexPath =…

Sharanamma Jekeen
- 109
- 1
- 3
- 18
0
votes
1 answer
How to tokenize a text in lucene 3.0.3
I need to translate this code from lucene.net 2.3.2 to 3.0.3.
This code works fine in 2.3.2 but in 3.0.3 the method tokenStream.Next() does not return a token but a boolean. What I need to understand is where to read the token object when next()…

FDB
- 971
- 16
- 32
0
votes
2 answers
Lucene - custom analyzer/tokenizer to index JSON key pair values
I'm aiming to store and index JSON key pair values.
Ideally I would store them in a constant fieldname. (For simplicity sake, "GRADES")
An example of the incoming JSON object:
"Data": [{
"Key": "DP01",
"Value": "Excellent"
},…

pelican_george
- 961
- 2
- 13
- 33
0
votes
1 answer
Creating Lucene Index for Sitecore causes "Could not find add method" errors
I have a sitecore 6.2 site that had no lucene indexes besides the system index. I tried to add this new simple index:
$(id)

Ed Schwehm
- 2,163
- 4
- 32
- 55
0
votes
1 answer
AzureDirectory Library for Lucene.NET: Performance Issues when indexing
I am trying to use the AzureDirectory library to store a Lucene.NET index on a Azure Cloud Storage account.
I am using the following versions:
Microsoft.Windows.Azure.Storage 4.3.0.0
Lucene.Net 3.0.3.0
Lucene.Net.Store.Azure 3.0.5553.21100
And…

Stokedout
- 11,003
- 5
- 24
- 30
0
votes
1 answer
Lucene - Custom Analyzer/Parser for JSON objects?
I have a requirement for a very specific Lucene implementation which stores multiple "Properties" fields with deserialized JSON strings.
Example:
Document:
ID: "99"
Text: "Lorepsum Ipsum"
Properties: "{
"lastModified": "1/2/2015",
"user":…

pelican_george
- 961
- 2
- 13
- 33
0
votes
1 answer
Lucene non indexed fields, case insensitive search?
Imagine that all documents have the following fields:
Field("Id", Field.Store.YES, Field.Index.NOT_ANALYZED, Field.TermVector.NO));
Field("From", Field.Store.YES, Field.Index.NOT_ANALYZED, Field.TermVector.NO));
Field("To", Field.Store.YES,…

pelican_george
- 961
- 2
- 13
- 33
0
votes
1 answer
Lucene.net 3.0.5 - Reading uncommited changes, possible?
I'm indexing a sequence of documents with the IndexWriter and commiting the changes at the end of the iteration.
However, halfway the iteration I would like to "query" the uncommitted changes using an IndexSearcher. Is this possible with the current…

pelican_george
- 961
- 2
- 13
- 33
0
votes
2 answers
Sitecore 8.1 : Lucene.Net.Store.LockObtainFailedException
We have sitecore 8.1 hosted in Azure WEB Apps. The setup is 1xCA and 2xCD and using LUCENE
We noticed a error log below which I googled but could not get solution.
ManagedPoolThread #12 2015:12:28 23:22:33 ERROR Exception
Exception:…

Nil Pun
- 17,035
- 39
- 172
- 294