Thread:Extension talk:Lucene-search/Searching from a Java program by including LuceneSearch.jar

I am trying to include  LuceneSearch.jar  to my Java program to perform search without instantiating the search daemon. On the same machine, I have the indexes and lsearch.conf and lsearch-global.conf files properly modified. So far, I've arrived to something like this: Configuration config = Configuration.open; SearcherCache cache = SearcherCache.getInstance; URI uri = new URI("http://localhost:8123/search/wiki/maradona?limit=3"); HashMap query = new QueryStringMap(uri); double version = getVersion(query); SearchEngine search = new SearchEngine; SearchResults res = search.search("wiki","search","maradona",query,version);

Everything goes fine until the search itself, where I get " wiki is being deployed or is not searched by this host" error. This seems to be because the initialWarmup variable is empty. And from there, I am stuck.

To fill in the initialWarmup hash map it seems I should call cache.getSearcherPoolStatus(IndexID indexID). However, even if this is the right method to call, where do I get the indexID object(s)?

Many thanks, Tomas