Re: DrillSideways accepting FacetCollector parameter

2014-07-08 Thread Jigar Shah
Usecase: With below code i perform search. DrillSideways drillSideWays = new DrillSideways(searcher, config, engine.getTaxoReader()); DrillSidewaysResult result = drillSideWays.search(filterQuery, null, null, first + limit, sort, true, true); In above code i don't have reference to FacetCollecto

IndexSearcher.doc thread safe problem

2014-07-08 Thread 김선무
Hi all, I know IndexSearcher is thread safe. But IndexSearcher.doc is not thread safe maybe... I try to below First, I extract docID at index directory. And that docID add on queue(ConcurrentLinkedQueue) Second, extract field value using docID poll at

Adding/removing a term from a document

2014-07-08 Thread Allen Kneser
Hi all, I am trying to figure out how to easily remove or add a keyword from a document's index (or equivalently, decrease/increase that keyword's frequency in the document). I know Lucene allows you to reindex a document using the IndexWriter.updateDocument(docPath, doc) call but that's too expe

Re: Incremental Field Updates

2014-07-08 Thread Ravikumar Govindarajan
That's a cool patch. Thanks On Thursday, July 3, 2014, Gopal Patwa wrote: > Thanks Ravi, it is good to know general problem with updatable field. In > our use-case where we have few fields which update more frequently then > main index. We are using this SOLR join contrib patch with DocTransfor

Re: DrillSideways accepting FacetCollector parameter

2014-07-08 Thread Michael McCandless
We could do this, but what's the use case? E.g. DrillSideways also "hardwires" the drill-sideways collectors it creates ... do you control over those as well? Maybe we could make methods in the DrillSideways class that you could override? Mike McCandless http://blog.mikemccandless.com On Tue,

Re: re-use IndexWriter

2014-07-08 Thread Ian Lea
Read the javadocs to understand the difference between commit() and flush(). You need commit(), or close(). There are no hard and fast rules and it depends on how much data you are indexing, how fast, how many searches you're getting and how up to date they need to be. And how much you worry abo

re-use IndexWriter

2014-07-08 Thread Jason.H
nowadays , i've been trying every way to improve the performance of indexing , IndexWriter's close operation is really costly , and the Lucene's doc sugguest to re-use IndexWriter instance , i did it , i kept the indexWriter instance , and give it back to every request thread , But there comes

DrillSideways accepting FacetCollector parameter

2014-07-08 Thread Jigar Shah
Currently Drillsideways provides following method: public DrillSidewaysResult search(DrillDownQuery query, Collector hitCollector); Can same class provide following method ? public DrillSidewaysResult search(DrillDownQuery query, Collector hitCollector, FacetsCollector facetCollector); Currentl