开发者

How do I get more than one result at a time from a FAST ESP query

开发者 https://www.devze.com 2023-02-03 18:22 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消