AnalyzingInfixSuggester Lookup Quesiton

2018-10-26 Thread Sidhant Aggarwal
Hi, I have a question regarding AnalyzingInfixSuggester. Suppose I have an indexed term with the word: Lucene And I query Luc!!! Even In this case I would want lucene to suggest me Lucene, because at the analyzer level I am handling cleaning the query part. The Analyzer would remove the ! and

Partial SpellChecking

2018-02-26 Thread Sidhant Aggarwal
I am using Lucene to perform spell checking. I am using  https://lucene.apache.org/core/5_4_1/suggest/org/apache/lucene/search/spell/SpellChecker.html What I really want is, for example, I have a word: spellingmistake And now I type: speli.  In this case, I want to spellchecker to return me the

Re: Query related to GeoSpatial Search

2018-02-17 Thread Sidhant Aggarwal
Hi Aakanksha, You will need to use a boolean query to do this. In the boolean query first, add a clause for the distance attribute using MUST clause and then add another timestamp query MUST clause. Use this: https://lucene.apache.org/core/6_1_0/core/org/apache/lucene/search/BooleanQuery.html

Re: SearcherTaxonomyManager Refreshing

2017-08-27 Thread Sidhant Aggarwal
index is not a good idea in general. On Thu, Aug 24, 2017 at 6:40 AM, Sidhant Aggarwal wrote: Hi, To manage my indexes I am using the SearcherTaxonomyManager. But the way in changing the indexes is slightly different. Say i have my main search index in /index directory and my taxonomy ind

SearcherTaxonomyManager Refreshing

2017-08-24 Thread Sidhant Aggarwal
Hi, To manage my indexes I am using the SearcherTaxonomyManager. But the way in changing the indexes is slightly different. Say i have my main search index in /index directory and my taxonomy index in /taxo directory. So periodically i just replace these two directories with newer indexes. Aft

Reopen AnalyzingInfixSuggester Multi Threaded

2017-07-05 Thread Sidhant Aggarwal
Hi, Im using the AnalyzingInfixSuggester for my autocomplete. So i have a singleton object where I am opening the suggester and  keeping the references. Many threads are accessing these references and performing searches. But what i want to do is that my underlying directory where the index is

Which is More Efficient Way of storing Doc Values

2017-04-27 Thread Sidhant Aggarwal
Hi, I have a e-commerce search engine. In this in each document i want to store custom score of each product. And further the score of each product would depend on in which category the product was searched on. So as this is part of scoring i will be storing this data as doc values. Now i hav

Analyzing Infix Suggestor Exact Match Boost

2017-03-08 Thread Sidhant Aggarwal
Hi, Im using analyzing infix suggestor. I have a use case for which i cant find a solution to so if anyone can help me out with that. Suppose i index two terms :- abc abc def And both these terms were indexed with the same weight. Now suppose in my query i type abc i want the exact match to be

Re: Issue when using BlockGroupingCollector

2017-01-17 Thread Sidhant Aggarwal
Another Update: I am also observing that in BlockGroupongCollector if i sort by INDEX_ORDER and make needs score true then my scorer is called once and i am still getting each doc score. But when i change the Sort to RELEVANCE the scorer is called twice. On Jan 16, 2017, at 12:18 PM, Sidhant

Issue when using BlockGroupingCollector

2017-01-16 Thread Sidhant Aggarwal
Im trying to use the BlockGroupingCollector to get grouped results when searching in Lucene. I had indexed my doucments using the addDocuments function in IndexWriter and also added a group separator at the end of each group. Using this code: val groupEndDocs = new TermQuery(new Term("groupEnd