Solr日期字段tdate vs date? [英] Solr date field tdate vs date?

查看:120
本文介绍了Solr日期字段tdate vs date?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个关于Solr的字段日期类型的问题,这是非常简单的:日期字段和tdate字段之间有什么区别?

So I have a question about Solr's field date types which is pretty straight forward: what's the difference between a 'date' field and a 'tdate' one?

模式.xml声称对于更快的范围查询,请考虑tdate类型和基于日期的日期字段,以便更快的日期范围查询和日期打分。 '
足够公平,但是什么是precisionStep =6呢?我应该改变这个吗如果我使用tdate,它会改变我创建查询的方式吗?什么是真正的优势或Solr做什么使它更好?

The schema .xml claims that 'For faster range queries, consider the tdate type' and 'A Trie based date field for faster date range queries and date faceting. ' Fair enough... but what's the precisionStep="6" all about? should i change this? does it change the way i would create the query in case I use the tdate? What's the real advantage or what does Solr do that makes it better?

PS通过谷歌,Solr手册,solr维基和java文档没有任何运气,所以我会感谢一种类型和解释性答案:)...
还检查:
http://www.lucidimagination.com/blog/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/
http://web.archiveorange.com/archive/v/AAfXfqRYyLnDFtskmLRi

P.S went through google, Solr manual, solr wiki and the java docs without any luck so I'd appreciate a kind and explanatory answer :)... Also checked: http://www.lucidimagination.com/blog/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/ http://web.archiveorange.com/archive/v/AAfXfqRYyLnDFtskmLRi

推荐答案

好问题:-)!我在某个地方读了一个很好的答案,可惜再也找不到了。

Good question :-) ! I read a good answer somewhere, sadly cannot find this again.

基本上trie的范围更快。 这里是一个解释。使用precisionStep,您可以配置索引可以增长多少以获得性能优势。引用你所指的链接:

Basically trie ranges are faster. Here is one explanation. With precisionStep you configure how much your index can grow to get the performance benefits. To quote from the link you are referring:

更重要的是,它不依赖于索引大小,而是依赖于所选的精度。

TrieRange的唯一缺点是有一个更大的索引大小,因为的附加条款索引为

这篇关于Solr日期字段tdate vs date?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆