support dataset urn search

This commit is contained in:
Na Zhang 2017-08-17 14:10:29 -07:00
parent ca34cd920d
commit 0d481a2539

View File

@ -34,7 +34,10 @@ public class Search {
+ "{\"prefix\": {\"name\": {\"value\": \"$VALUE\", \"boost\": 32}}}, "
+ "{\"match\": {\"name\": {\"query\": \"$VALUE\", \"boost\": 48}}}, "
+ "{\"match\": {\"name\": {\"query\": \"$VALUE\", \"type\": \"phrase\", \"boost\": 64}}}, "
+ "{\"wildcard\": {\"urn\": {\"value\": \"*$VALUE*\", \"boost\": 8}}}, "
+ "{\"wildcard\": {\"urn\": {\"value\": \"*$VALUE*\", \"boost\": 16}}}, "
+ "{\"prefix\": {\"urn\": {\"value\": \"$VALUE\", \"boost\": 32}}}, "
+ "{\"match\": {\"urn\": {\"query\": \"$VALUE\", \"boost\": 48}}}, "
+ "{\"match\": {\"urn\": {\"query\": \"$VALUE\", \"type\": \"phrase\", \"boost\": 64}}}, "
+ "{\"wildcard\": {\"field\": {\"value\": \"*$VALUE*\", \"boost\": 4}}}, "
+ "{\"wildcard\": {\"properties\": {\"value\": \"*$VALUE*\", \"boost\": 2}}}, "
+ "{\"wildcard\": {\"schema\": {\"value\": \"*$VALUE*\", \"boost\": 1}}}" + "]}" + "}";