Using MultiFieldQueryParser
Hi, Am using MultiFieldQueryParser for parsing strings like a.a., b.b., etc But after parsing, its removing the dots in the string. What am i missing here? Thanks. ...
Hi, Am using MultiFieldQueryParser for parsing strings like a.a., b.b., etc But after parsing, its removing the dots in the string. What am i missing here? Thanks. ...
Am using this version of Lucene highlighter.net API. I want to get a phrase highlighted only when ALL of its words are present in the search results..But,am not able to do so....for example, if my input search string is "Leading telecom company", then the API only highlights "telecom" in the results if the result does not contain the wo...
Today I found this document about the DuplicateFilter. That would be exactly what I need right now, but I can't seem to find it in the .net port. Is it there at all? ...
Am posting this question again as my query is not answered. Am working on a book search api using Lucene. User can search for a book whose title or description field contains C.F.A... Am using StandardAnalyzer alongwith a list of stop words. Am using MultiFieldQueryParser for parsing above string.But after parsing, its removing the dot...
Here's what I want to do, using pseudo-code: lucene.Find((someField == "bar" || someField == "baz") && anotherField == "foo"); Or in English, "find all documents where someField is 'bar' or 'baz', and where anotherField is 'foo'". How can I do a query like this with Lucene? ...
What are the various ways of optimizing Lucene performance? Shall I use caching API to store my lucene search query so that I save on the overhead of building the query again? ...
Hi, Am using Lucene API in my web portal which is going to have 1000s of concurrent users. Our web server will call Lucene API which will be sitting on an app server.We plan to use 2 app servers for load balancing. Given this, what should be our strategy for replicating lucene indexes on the 2nd app server?any tips please? ...
Hi, When do i use Lucene RAMDirectory?what's the advantage of using it? Can i have some code sample please? Thanks. ...
Are there any special considerations to be aware of when building a 3.5 application against the 2.0 build for lucene.net? I found a couple guys would posted their project files for lucene, but wasn't sure if that was the proper way to go. ...
Hi, I'm trying to figure out where Lucene stores the cached query results, and how it's configured to do so - and how long it caches for. This is for an ASP.NET 3.5 solution. I'm getting this problem: If I run a search and sort the result by a particular product field, it seems to work the very first time each search and sort combinati...
My indexed document in Lucene has got multiple cities assigned to it...ie. doc.Add(new Field("city", city1.Trim(), Field.Store.YES, Field.Index.TOKENIZED)); doc.Add(new Field("city", city2.Trim(), Field.Store.YES, Field.Index.TOKENIZED)); etc how do i iterate thru them and read the values after executing the Lucene search query? Thanks...
Am newbie to Lucene. Is there any way I can make Lucene analyzer not ignore dots in the string?? for example,if my search criteria is: "A.B.C.D",Lucene should give me only those documents in the search results which have "A.B.C.D" and not "ABCD".... ...
I'm using Rangequery to get all the documents which have amount between say 0 to 2. When i execute the query, Lucene gives me documents which have amount greater than 2 also...What am i missing here? Here is my code: Term lowerTerm = new Term("amount", minAmount); Term upperTerm = new Term("amount", maxAmount); ...
Has anybody heard of the Lucene version 2.3.1.3? We're using it in a production project. However the stable version of Lucene version 2.0.0.4. Should I push to have the project's dependencies moved to version 2.0.0.4? ...
Am a newbie to Lucene an working on a city search API using Lucene. If user types in san francisco as search input, then it should give cities with exact match only and not San Jose /San Diego,etc. How should i index city names in Lucene?and which Lucene analyzer and query class do i need to use? ...
I am working on a store search API using Lucene. I need to show store search results for each City,State combination with its frequency in brackets....for example: Los Angles,CA (450) Atlanta,GA (212) Boston, MA (78) . . . As of now, my search results return around 7000 Lucene documents, on average, if the user says "Show me all the ...
I've learned from reading the available documentation that an IndexSearcher instance should be shared across searches, for optimal performance, and that a new instance must be created in order to load any changes made to the index. This implies that the index is writable (using IndexWriter) after having created an instance of IndexSearch...
I use Lucene.net to index content and documents etc.. on our CMS. This has worked well so far, but now I've got to take account of the following additions to web pages: Publish date Expiry date Page 'is active' User authorisation So the search results should only show pages that are within the Publish / Expiry window, are 'active' an...
I need to return just the documents that a user has access to from a Lucene search. I can get a list of IDs from a database that make up the 'allowed' subset. How can I pass these to Lucene? The articles I've found on the web suggest I need to use a BitSet and FieldCache (am I right?), but I'm having trouble finding good examples. Does a...
I am trying to implement Linq To Lucene in my project, but when trying to search for something, I am always getting a Enumeration yielded no results result and when I debug and try to open my [IndexContext].[TableProperty] in the Watch window, I am getting this message: The predicate of a Lucene Term can not be the empty string. ...