开发者

thinking sphinx options

开发者 https://www.devze.com 2023-04-01 19:15 出处:网络
I\'m confused, when should we use indexes and has method in 开发者_StackOverflow社区sphinx. I have a very vague and abstract idea about it.I was told for date range we use has method. But nowhere I co

I'm confused, when should we use indexes and has method in 开发者_StackOverflow社区sphinx. I have a very vague and abstract idea about it.I was told for date range we use has method. But nowhere I could find a concrete explanation for this.


The indexes method is for fields - and fields are the textual/string data that contain words you expect people to search for.

The has method is for attributes - which are mostly integers, floats, timestamps and boolean values, which are used by developers for sorting, filtering and grouping. If you want to filter for records given a date range, then an attribute is the best tool for the job.

0

精彩评论

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