lucene.net

What is the latest version of Lucene.net?

强颜欢笑 提交于 2019-12-08 02:14:19
问题 From where do I download the latest version of Lucene.net dll? I am right now using 2.0.0.4 version but its MultiFieldQueryParser's constructor does not accept boost values. 回答1: Here! Looks like v2.0-004 is the latest version though. 回答2: 2.0.0.4 is the latest package that they have available. However, if you don't mind building from the source, 2.3.1 is the latest stable that they have in the trunk. You can just pull down something like TortoiseSVN and pull it from the repository. I built

How to maintain Lucene index availability during rebuild?

隐身守侯 提交于 2019-12-08 01:54:29
问题 When rebuilding indexes on a content delivery server, any components that search that index fail (blow up). How can I rebuild my index without causing the search components to be unavailable? Furthermore, is there a standard way to handle this? The code I'm using to perform the reindex on regular intervals: Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase(DBName); Index index = db.Indexes[IndexName]; index.GetSearcher(db).Close(); index.Rebuild(db); To give a little

How To implement LuceneNet using Amazon S3

青春壹個敷衍的年華 提交于 2019-12-08 01:14:41
问题 I'm trying to implement Lucene in my app using Amazon S3 to storage the indexes that I generate, but I can find any code examples or a clear article. So anyone that have some kind of experience with this please give a guide or something that can help me start 回答1: There's a similar question here. Here's an interesting article of how the biggest Solr service provider Lucid Imagination proposes to deploy their Solr implementation on EC2. And here's their Search-as-a-Service solution. If you're

How do I get solr term frequency?

橙三吉。 提交于 2019-12-08 00:46:31
问题 I have a question that how could somebody get term frequency as we do get in lucene by the following method DocFreq(new Term("Field", "value")); using solr/solrnet. 回答1: Try debugQuery=on or TermsComponent. None of them are currently supported through SolrNet, so you can either work around it, or implement them and contribute them to the project. 来源: https://stackoverflow.com/questions/3905101/how-do-i-get-solr-term-frequency

Lucene .NET not returning search results

天涯浪子 提交于 2019-12-07 22:49:50
问题 For some reason lucene is not returning any results when it should be. Here is the 'search' code Dim util As New IndexerUtil() Dim dir As Lucene.Net.Store.Directory = FSDirectory.Open(New DirectoryInfo(util.getIndexDir())) Dim indexSearcher As New IndexSearcher(dir, False) Dim indexWriter As New IndexWriter(dir, New SimpleAnalyzer(), False, indexWriter.MaxFieldLength.UNLIMITED) Dim term As New Term("id", "346") Dim query As New TermQuery(term) Dim topDocs As TopDocs = indexSearcher.Search

Improving performance of Location based search using Lucene

大城市里の小女人 提交于 2019-12-07 19:11:00
问题 I'm using Lucene for a job search portal using .net. Am facing some performance related issues in the following use case. Use case is: When doing job search, user can select job location(for exameple:Atlanta,GA) and select radial distance (say 50 miles).The time required to return job search results from Lucene is pretty high. FYI,we are maintaining a sql server 2005 database where we store US and Canada based city,state,longitude and latitude.(contains a total of about 1 million records). Is

Lucene Indexes in Sitecore getting corrupted (ArgumentOutOfRangeException)

白昼怎懂夜的黑 提交于 2019-12-07 13:26:11
问题 We are having an issue with searching a Lucene Index in Sitecore. Everything works fine for a while, and then, after what appears to be a random amount of time, we start getting the following error on every single search against the index: System.ArgumentOutOfRangeException Message: Non-negative number required. Parameter name: capacity Source: mscorlib at System.Collections.Hashtable..ctor(Int32 capacity, Single loadFactor) at System.Collections.Hashtable.Clone() at SupportClass

Lucene.net search engine

牧云@^-^@ 提交于 2019-12-07 13:17:31
问题 I have a folder with 20 text files in it. and I wish to index this folder and search for any keyword among these files. How can I do this in C#? 回答1: This is a nice introduction to lucene.Net: Introducing Lucene.Net (CodeProject) It covers the basics of how to create an index, add documents to the index and finally how to search your index. 回答2: 1) Use this code to load all your file contents into a List(): var files = new List<string>(); foreach (var filePath in System.IO.Directory

Indexing multi-lingual content with Lucene.net

怎甘沉沦 提交于 2019-12-07 12:12:19
问题 I use Lucene.net for indexing content & documents etc.. on websites. The index is very simple and has this format: LuceneId - unique id for Lucene (TypeId + ItemId) TypeId - the type of text (eg. page content, product, public doc etc..) ItemId - the web page id, document id etc.. Text - the text indexed Title - web page title, document name etc.. to display with the search results I've got these options to adapt it to serve multi-lingual content: Create a separate index for each language. E.g

How to store multiple distinct types of documents in Lucene

一个人想着一个人 提交于 2019-12-07 10:17:05
问题 I have an existing Lucene store with many millions of documents, each one representing metadata for an entity. I have a few Id fields (Id1, Id2 .. Id5) and each document can have zero or many values for this field. The index is only ever queried by one of these Ids at a time. I've indexed these fields independently and it's is all working great. I initially chose to use Lucene as it was by far the fastest way to query such a vast number of small documents and I am happy with my decision.