Hi, Rohit,

You need to create index reader in the sub directory where you created
the index files. Lucene's IndexReader won't find your index if you
simply move the index to a sub directory.

Yes, if you have several index directory, you need to combine them
together. But you can achieve this by using MultiReader.

-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes


On 8/12/07, rohit saini <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have bulk of data to be indexed and that may cross index file size of 2GB.
> As lucene faq tells that if index file size increses to 2GB there will be
> problems. but faq tells to make index subdirectory in this case. I have
> tried to do so made a index subdirectory in index main directory when index
> file size increses to 2GB but during search I don't get any result from
> index subdirectory. do I need to search recursively but in that case there
> will be more than "hits" object then how to combine them and return a single
> result to the user? Please tell me ....
>
> Thanks & Regards,
>
> Rohit
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to