Solr range query in text field -
i have multi valued field. content looks way
multi_field:"type:type1; year:2008"
i want able make range requests based on year substring. cannot understand if can perform kind of range queries. want have this. q=multi_field:"type:type1;*" , multi_field:"*years:[2005 2010]*"
is possible? know looks horrible. there way can it?
no, not possible (at least without hell-a-lot of coding). easiest way should fix indexing code split field 2 separate fields. if need keep original multi_field
available (e.g. used in processing search results), create 2 new fields (e.g. multi_field_part1
, multi_field_part2
), search on new fields (q=multi_field_part1:type1 , multi_field_part2:[2005 2010]
), use old 1 in results.
Comments
Post a Comment