简体   繁体   English

从Solr访问有限的数据

[英]Accessing limited data from solr

I have huge amount of data to be searched. 我有大量要搜索的数据。 I want to search from solr, and solr only returns the ids of the searched records. 我想从solr中搜索,而solr仅返回搜索记录的ID。 Now i have a cache of all the records in solr (Memcache) and want to fetch whole data set from cache. 现在,我对solr(Memcache)中的所有记录进行缓存,并希望从缓存中获取整个数据集。

Is it good idea ? 这是个好主意吗? Any help ? 有什么帮助吗?

Thanks. 谢谢。

And the problem is? 问题是? Just define the 'fl' parameter to be the list of fields you want to return, in which case 'id'. 只需将“ fl”参数定义为要返回的字段列表,在这种情况下为“ id”。

And if you never actually return the other fields, don't bother storing them, define them as index only. 并且,如果您从未真正返回其他字段,请不要费心存储它们,将它们仅定义为索引。 If you do have to store them but only want them very rarely, test using enableLazyFieldLoading setting in solrconfig.xml 如果您确实需要存储它们,但只需要很少使用它们,请在solrconfig.xml中使用enableLazyFieldLoading设置进行测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM