I'm using AzureDirectory and Lucene .NET 2.9.4 but I have wo problems:
- searcher doesn't seems to be so fast. I'm indexing with these settings: indexWriter.SetUseCompoundFile(false); indexWriter.SetMergeFactor(1000); index is around 3.5gb and it has 12.126.436 docs. To create the indexSearcher it takes around 5 min or more even if index is already on local disk. Is the index too big? I tried to perform a single term search using MultiFieldQueryParser on two fields. TermVector on fields is off
- Everywhere is suggested to create only an instance of indexSearcher and share it between queries (in fact it is slow to be created) but I don't know how to share the Searcher singleton (it is the class that perform the search) between various web requests. If I create the singleton on the webrole class, then how can I use that instance to perform the search? At this moment every web requests recreates the singleton.
Thanks a lot