Re: Split index and store

2013-03-07 Thread Ramprakash Ramamoorthy
On Wed, Mar 6, 2013 at 8:08 PM, Emmanuel Espina wrote: > I understand and it sounds ok. The "store" index would be like an ordinary > database where you search by value. > > Another approach you could consider is to compress the field before > indexing. That is you compress with > > http://docs.or

Re: Split index and store

2013-03-06 Thread Emmanuel Espina
I understand and it sounds ok. The "store" index would be like an ordinary database where you search by value. Another approach you could consider is to compress the field before indexing. That is you compress with http://docs.oracle.com/javase/1.5.0/docs/api/java/util/zip/GZIPInputStream.html and

Re: Split index and store

2013-03-05 Thread Ramprakash Ramamoorthy
On Mon, Mar 4, 2013 at 11:26 PM, Emmanuel Espina wrote: > 100 terms in a boolean query is not so costly. You could wrap that query in > a ConstantScoreQuery to avoid the score calculation. > Thank you Immanuel. This one sounds good. > > Why do you have separate indexes? It would be better to bui

Re: Split index and store

2013-03-04 Thread Emmanuel Espina
100 terms in a boolean query is not so costly. You could wrap that query in a ConstantScoreQuery to avoid the score calculation. Why do you have separate indexes? It would be better to build a single document and index+store it on a single index. Thanks Emmanuel 2013/3/1 Ramprakash Ramamoorthy

Re: Split index and store

2013-03-01 Thread Ramprakash Ramamoorthy
On Fri, Mar 1, 2013 at 4:46 PM, Ian Lea wrote: > Never rely on lucene internal doc ids. Use your own. Lucene searches > on unique ids are of course very fast. > Point taken Ian. So in case I have 100 matching doc Ids and so the next step is either collate the 100 docIds into a query with OR, o

Re: Split index and store

2013-03-01 Thread Ian Lea
Never rely on lucene internal doc ids. Use your own. Lucene searches on unique ids are of course very fast. -- Ian. On Fri, Mar 1, 2013 at 9:51 AM, Ramprakash Ramamoorthy wrote: > Hello team, > > I have a query and I am explaining it as below. > > Objective : To split index and sto