Re: How to get the index for a document after a search over multiple indexes

2016-06-14 Thread Trejkaz
On Wed, Jun 15, 2016 at 6:08 AM, Mark Shapiro wrote: > private static IndexSearcher getSearcher( String[] indexDirs ) throws > Exception { > IndexReader[] readers = new IndexReader[indexDirs.length]; > FSDirectory[] directorys = new FSDirectory[indexDirs.length]; > > for ( int i = 0; i < in

Re: How to get the index for a document after a search over multiple indexes

2016-06-14 Thread Mark Shapiro
private static IndexSearcher getSearcher( String[] indexDirs ) throws Exception { IndexReader[] readers = new IndexReader[indexDirs.length]; FSDirectory[] directorys = new FSDirectory[indexDirs.length]; for ( int i = 0; i < indexDirs.length; ++i ) { File file = new File( indexDirs[i] );

Re: How to improve indexing performance for lucene 6

2016-06-14 Thread Hans Lund
Hi Mukul There is not much information in your question. So to make a guess could you provide 1) the time it takes to fetch the docs from sql server (without doing any indexing) 2) the size of the documents. 3) what kind of analysing is done 4) why are you creating this mergepolicy - is this what

How to improve indexing performance for lucene 6

2016-06-14 Thread Mukul Ranjan
Hi, I have 150k documents in lucene index folder. It is taking 30-35 minute to rebuild the index. We are fetching this data from sql server. I have applied below parameters while getting instance of indexWriter- IndexWriterConfig indexWriterConfig = new IndexWriterConfig(getAnalyzer(callerCon

Re: How to use Query Time Join with Lucene 5.3.0?

2016-06-14 Thread Martijn v Groningen
The blog you're referring to is explaining the query time join implementation that isn't using ordinal map, which is the first method in the JoinUtil class (with the ordinal map as parameter). If you want to use the method that uses global ordinals you can use this snippet to create an OrdinalMap