lucene.net

Where has Lucene.Net.Highlight gone?

試著忘記壹切 提交于 2019-12-01 14:33:06
问题 I'm trying to figure out where Lucene.Net.Highlight.dll and the corresponding formatting classes (such as SimpleHTMLFormatter ) have gone to. The last time I downloaded Lucene.Net this assembly was packaged up in the zip file, however this isn't the case with the latest download I could find and I couldn't find any other references to it on this page, or any other page for that matter. Does anyone know where it is hiding? 回答1: There is no binary releases of the recent Lucene.Net versions. You

How to create facets with Lucene.Net

拈花ヽ惹草 提交于 2019-12-01 13:02:51
问题 I am building a C# windows form application that searches a database and displaying the results. I am trying to find a guide on how to create facets with Lucene but it seems that I can't. I am creating the index and I am able to search a database but I want to create facets for the results. Is there any guide or a project to use as example? EDIT here's the link to my project so far https://github.com/assignment128A-adopse/Assignment any help/suggestion would be helpful 回答1: There are a few

Lucene.Net fails at my host because it calls GetTempPath(). What's the work around?

对着背影说爱祢 提交于 2019-12-01 11:33:37
I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack trace shown below. What's the work around? [SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.IO.Path.GetTempPath() +54 Lucene.Net.Store.FSDirectory..cctor() +73 Here's the answer to my own question. The

Lucene.Net fails at my host because it calls GetTempPath(). What's the work around?

喜夏-厌秋 提交于 2019-12-01 08:42:31
问题 I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack trace shown below. What's the work around? [SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.IO.Path

How to search across all the fields?

怎甘沉沦 提交于 2019-12-01 03:06:01
In Lucene, we can use TermQuery to search a text with a field. I am wondering how to search a keyword across a bunch of fields or all the searchable fields? javanna Another approach, which doesn't require to index anything more than what you already have, nor to combine different queries, is using the MultiFieldQueryParser . You can provide a list of fields where you want to search on and your query, that's all. MultiFieldQueryParser queryParser = new MultiFieldQueryParser( Version.LUCENE_41, new String[]{"title", "content", "description"}, new StandardAnalyzer(Version.LUCENE_41)); Query query

How to perform Phonetic and Aproximative search in Lucene.net

时光怂恿深爱的人放手 提交于 2019-12-01 02:01:18
When I read the Lucene.net docs, the only analyzer that I find is the standard one. I want to make sure I can do Phonetic or Aproximative search on my index. Is there some extra library I should use on top of Lucene.net? You might want to try porting one of Phonetix's analyzers (Soundex, Metaphone or DoubleMetaphone) 来源: https://stackoverflow.com/questions/3223637/how-to-perform-phonetic-and-aproximative-search-in-lucene-net

Lucene and Special Characters

大城市里の小女人 提交于 2019-12-01 00:08:29
问题 I am using Lucene.Net 2.0 to index some fields from a database table. One of the fields is a 'Name' field which allows special characters. When I perform a search, it does not find my document that contains a term with special characters. I index my field as such: Directory DALDirectory = FSDirectory.GetDirectory(@"C:\Indexes\Name", false); Analyzer analyzer = new StandardAnalyzer(); IndexWriter indexWriter = new IndexWriter(DALDirectory, analyzer, true, IndexWriter.MaxFieldLength.UNLIMITED);

Conditional search with lucene.net

南楼画角 提交于 2019-11-30 21:18:55
问题 the below way i did the search with lucene.net. this routine search multiple word against all index field called "Title", "Description", "Url", "Country" . i need to know how can i give a condition like where country='UK' or country='US' i want that multiple word should be search like below but i want to add one more clause that when country is UK. so please guide me what to add in my code. if (!string.IsNullOrEmpty(multiWordPhrase)) { string[] fieldList = { "Title", "Description", "Url" };

How to perform Phonetic and Aproximative search in Lucene.net

折月煮酒 提交于 2019-11-30 20:42:06
问题 When I read the Lucene.net docs, the only analyzer that I find is the standard one. I want to make sure I can do Phonetic or Aproximative search on my index. Is there some extra library I should use on top of Lucene.net? 回答1: You might want to try porting one of Phonetix's analyzers (Soundex, Metaphone or DoubleMetaphone) 来源: https://stackoverflow.com/questions/3223637/how-to-perform-phonetic-and-aproximative-search-in-lucene-net

Lucene / Lucene.NET - Document.SetBoost() values?

血红的双手。 提交于 2019-11-30 20:33:06
I know it takes in a float, but what are some typical values for various levels of boosting within a result? For example: If I wanted to boost a document's weighting by 10% then I should set it 1.1? For 20% then 1.2? What happens if I start setting boosts to values like 75.0? or 500.0? Edit: Fixed Formatting Please see the Lucene Similarity Documentation for the formula. In principle, all other factors being equal, setting a document's boost to 1.1 will indeed give it a score that is 10% higher as compared to an identical document with a boost of 1.0. If you have a set of documents that should