inverted index in clucene

2010-06-30 Thread suman.holani
Hello , Can we use subset of documents , for searching . Lets say I have hash map of P1 -1,2,3,4 P2 - 3,4,5 P3-7,5,3 Now I have an documents in lucene index stored as 1-P1 2-P1 3-P1,P2,P3 4-P1,P2 5-P2,P3 7-P3 .. .. when i search docs with P2 I get 3,4,5 Now I

Re: Document Order in IndexWriter.addIndexes

2010-06-30 Thread Andrzej Bialecki
On 2010-06-30 05:12, Apoorv Sharma wrote: while calling addindexes or addindexes with no optimize can any gurantee be given about the document order in the new documents given that the order of directories/indexreader is fixed. So is it that ith document coming from jth indexreader will

Re: Adding a new field to existing Index

2010-06-30 Thread Naveen Kumar
yes, with lucene's current API's, it does not seem possible. But, as this is a problem that many might be facing, I was hoping someone might have figured out a solution. On Tue, Jun 29, 2010 at 5:29 PM, Mango bgh...@gmail.com wrote: Unfortunately, I don't think it is possible to add new field

Re: Adding a new field to existing Index

2010-06-30 Thread Andrzej Bialecki
On 2010-06-29 13:40, Naveen Kumar wrote: Hey, I need to add a new field (a stored , not indexed field) for all documents present in an existing large index. Reindexing the whole index will be very costly. Is there a way to do this or any work around? There are some other low-level ways to

Re: example of processing terms in query results?

2010-06-30 Thread Grant Ingersoll
http://www.lucidimagination.com/blog/2009/08/05/getting-started-with-payloads/ and http://www.lucidimagination.com/blog/2010/04/18/refresh-getting-started-with-payloads/ On Jun 29, 2010, at 1:09 PM, Peter Wilkins wrote: Can someone point me to a code example that demonstrates processing

Re: Document Order in IndexWriter.addIndexes

2010-06-30 Thread Apoorv Sharma
This implies there is no way to merge two parallel indexes(based on parallel reader) to get a new parallel index. Correct me if I am wrong. On Tue, Jun 29, 2010 at 11:24 PM, Andrzej Bialecki a...@getopt.org wrote: On 2010-06-30 05:12, Apoorv Sharma wrote: while calling addindexes or

Stopwords and Wildcards

2010-06-30 Thread Markus Mehrwald
Hi, I use an AnalyzingQueryParser with the StandardAnalyzer and german stopwords in Lucene 3.0.1. If I have a query with a stopword followd by a wildcard (e. g. das*) I get a ParseException: Cannot build PrefixQuery with analyzer class org.apache.lucene.analysis.standard.StandardAnalyzer -

Re: Document Order in IndexWriter.addIndexes

2010-06-30 Thread Andrzej Bialecki
On 2010-06-30 22:16, Apoorv Sharma wrote: This implies there is no way to merge two parallel indexes(based on parallel reader) to get a new parallel index. Correct me if I am wrong. Do you mean sequentially, using IW.addIndexes(new IndexReader[]{index1,index2}), so that the fields from