Facet counts and drill down queries

2011-12-02 Thread Tobias Knaup
Hi all, I have a question about facet counts and drill down queries. When I run a drill down query, I only get counts for the category in the query, but I need the counts for all categories. Is there a way to do this without running two separate searches? I'm using a MultiCollector to wrap a

Re: lucene-core-3.3.0 not optimizing

2011-12-02 Thread KARTHIK SHIVAKUMAR
Hi I have used Index and Optimize 5+ Million XML docs in Lucene 1.x7 years ago, And this piece of IndexWriter.optimize used to Merger all the bits and pieces of the created into 1 big file. I have not tracked the API changes since 7 yearsand with lucene-core-3.3.0 ...on google not

Re: lucene-core-3.3.0 not optimizing

2011-12-02 Thread Ian Lea
Well, calling optimize(maxNumSegments) will (from the javadocs on recent releases) Optimize the index down to = maxNumSegments. So optimize(100) won't get you down to 1 big file, unless you are using compound files perhaps. Maybe it did something different 7 years ago but that seems very

Re: lucene-core-3.3.0 not optimizing

2011-12-02 Thread Simon Hafner
On 02.12.2011, at 04:54, KARTHIK SHIVAKUMAR wrote: Hi Spec O/s win os 7 Jdk : 1.6.0_29 Lucene lucene-core-3.3.0 Finally after Indexing successfully ,Why this Code does not optimize ( sample code ) INDEX_WRITER.optimize(100); INDEX_WRITER.commit();

Re: Lucene index inside of a web app?

2011-12-02 Thread okayndc
What would the web.xml look like? I'm lost. On Thu, Dec 1, 2011 at 11:04 PM, KARTHIK SHIVAKUMAR nskarthi...@gmail.comwrote: Hi generated Lucene index What if u need to upgrade this with More docs Best approach is Inject the Real path of the Index ( c:/temp/Indexes ) to the Web

Re: Facet counts and drill down queries

2011-12-02 Thread Shai Erera
Hi Tobi, What is the facet request that you define for the drill down query? I.e., if your initial query was 'foo' and you asked to count facet ABC. Then the user clicks one of he categories of facet ABC (that's your drill down query) -- what is the facet the you ask to count for the drill down

Re: Facet counts and drill down queries

2011-12-02 Thread Tobias Knaup
Hi Shai, Thanks for your response. Here is some example code that illustrates the problem: https://gist.github.com/1424333 Thanks Tobi On Fri, Dec 2, 2011 at 8:31 AM, Shai Erera ser...@gmail.com wrote: Hi Tobi, What is the facet request that you define for the drill down query? I.e., if

IndexReader.openIfChanged Doesn't Work on MultiReader

2011-12-02 Thread Jordon Saardchit
Just checking if this is a known issue or if I should report it. I have a MultiReader made up of 3 different indexes. If changes are made to either of the 3 underlying indexes, isCurrent() returns false (correctly) on said MultiReader. However, if I use the method IndexReader.openIfChanged()

RE: IndexReader.openIfChanged Doesn't Work on MultiReader

2011-12-02 Thread Uwe Schindler
Hi, I have a MultiReader made up of 3 different indexes. If changes are made to either of the 3 underlying indexes, isCurrent() returns false (correctly) on said MultiReader. However, if I use the method IndexReader.openIfChanged() on the MultiReader, a new MultiReader is returned (it does