开发者

Retrieving all records from Solr

I am using the inbuilt Tika plugin to upload .doc and .pdfs to the index. I 开发者_开发问答managed to upload some files. But some files did not have proper fields and are messing with retrieval.

I now want to retrieve the whole index for debugging purposes. I also want to see how my data is being stored, to gain a "feel" for it.

How can I fetch the entire index or atleast the entry for a given identifier?


If you need to see how your index looks like, I suggest using Luke (Lucene Index Toolbox). I used it once on a large Solr index and it was fine.


I'll just quote the Solr FAQ:

This is impractical in most cases. People typically only want to do this when they know they are dealing with an index whose size guarantees the result sets will be always be small enough that they can feasibly be transmitted in a manageable amount -- but if that's the case just specify what you consider a "manageable amount" as your rows param and get the best of both worlds (all the results when your assumption is right, and a sanity cap on the result size if it turns out your assumptions are wrong)

If you want to retrieve a single entry by identifier, then just query for id:your_id (replace 'id' with your actual identifier field and 'your_id' with the actual id value)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜