mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-29 10:57:52 +00:00
support dataset urn search
This commit is contained in:
parent
ca34cd920d
commit
0d481a2539
@ -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}}}" + "]}" + "}";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user