How do I get more than one result at a time from a FAST ESP query
I'm currently using the java fast esp interface (v5.0.15.1) to query fast and retrieve results. However I can only seem to get a document iter开发者_运维技巧ator from the IQueryResult and each call to .next() seems to be a http request. Is there a better way to deal with bulk results?
The api should be retrieving multiple results at a time, though next will periodically issue queries to populate the iterator. The number of queries fetched in each chunk is determined by the HITS parameter... so make sure it's higher than 1... default is normally 10 I think.
You can check the query logs $FASTSEARCH/var/log/querylogs to see what the api is currently passing for the hits param.
Have fun.
精彩评论