Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- search news {
- document news {
- field title type string {
- indexing: summary | index
- }
- field entities type array<string> {
- indexing: summary | index
- match: word
- }
- }
- rank-profile entity-ranking {
- first-phase {
- expression: nativeRank(title) + matches(entities)
- }
- }
- select * from sources * where rank(title contains "oops" or title
- contains "donald" or title contains "trump", entities contains "Donald Trump Jr.");
Add Comment
Please, Sign In to add comment