search - SharePoint 2013 KQL each query with xrank on multi value taxonomy field -
in search query query items have multi value taxonomy field.
the publishing page running query has same multi value tax field (for example "color").
example:
list items (have color column) - item 1: red, blue - item 2: yellow, red, white - item 3: red, blue, green - item 4: black publishing page (has color column) - defined colors are: red, green
all items match "red", "item 3" best match, has both red , green. need return items. not want filter, want rank items.
first attempt: following query returns items.
not each single value out of multi value field boosted whole value altogether.
contenttypeid:0x010600c0deb45360cf4e9eb452aefe3a238a1ca1* xrank(cb=100) mycolormanagedproperty:{page.mycolorcolumn}
problem: example item 4 have same ranking item 1 , 2. boost of 100 apply item 3 (which has red , green). need solution item 1 , 2 treated higher item 4 @ least contain "red".
update 1: (in previous version used multi value choice field) technet: http://technet.microsoft.com/en-us/library/jj683123(v=office.15).aspx) - multi choice fields not supported. in meantime switched multi value taxonomy field.
contenttypeid:0x010600c0deb45360cf4e9eb452aefe3a238a1ca1* xrank(cb=10) {|owstaxidrscolor:{page.rscolor}}
what is: xrank (property or property or property or ...)
want is: xrank property or xrank property or xrank property or ...`
update 2: proper bracket placing works wonders - thought. tried reproduce desired result , failed miserably. i'm still looking solution. approach below not work.
contenttypeid:0x010600c0deb45360cf4e9eb452aefe3a238a1ca1* xrank(cb=100) (owstaxidrscolor:{|{page.rscolor}})
the result is: contenttypeid:0x010600c0deb45360cf4e9eb452aefe3a238a1ca1* xrank(cb=100) (owstaxidrscolor:((#0655a6c23-6f73-43d4-b451-d01e0400717f) or (#0de2d6451-8825-4c4f-9b02-0b22089b6540))) ranks every item "default" value (of 5.xxx).
Comments
Post a Comment