Skip to content

Commit 3ff1e7d

Browse files
Merge pull request #1835 from vespa-engine/radu-gheorghe-patch-1
Remove model.type.profile option
2 parents 6569a8f + 232c965 commit 3ff1e7d

File tree

1 file changed

+1
-14
lines changed
  • examples/lucene-linguistics/multiple-profiles

1 file changed

+1
-14
lines changed

examples/lucene-linguistics/multiple-profiles/README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ curl -s -X POST -d '{
6060
"trace.level":2}' -H "Content-Type: application/json" 'http://localhost:8080/search/' | jq .
6161
```
6262

63-
### Force a different profile for the query
64-
65-
`model.type.profile` defines the profile to use for parsing the query string. This will match "dubious" with "special" (our test synonym expansion) even for the `title` field (which is bound to the `lowerFolding` profile which doesn't do synonym expansion):
66-
67-
```bash
68-
curl -s -X POST -d '{
69-
"yql":"select * from sources * where title contains \"dubious\"",
70-
"model.type.profile": "lowerFoldingStemmingSynonyms",
71-
"presentation.summary": "debug-text-tokens",
72-
"model.locale": "en",
73-
"trace.level":2}' -H "Content-Type: application/json" 'http://localhost:8080/search/' | jq .
74-
```
75-
7663
### Force a different profile for a specific query clause
7764

7865
This works with `userInput()` and the `grammar.profile` annotation:
@@ -85,4 +72,4 @@ curl -s -X POST -d '{
8572
"trace.level":2}' -H "Content-Type: application/json" 'http://localhost:8080/search/' | jq .
8673
```
8774

88-
**NOTE**: The `grammar: 'linguistics'` annotation isn't required in this case, but makes sure that no additional parsing (besides the defined profile) is done. This is useful, for example, with collapsing synonyms (e.g., `wi fi => wifi`). Otherwise, the query becomes `["wi", "fi"]` along the way.
75+
**NOTE**: The `grammar: 'linguistics'` annotation isn't required in this case, but makes sure that no additional parsing (besides the defined profile) is done. This is useful, for example, with collapsing synonyms (e.g., `wi fi => wifi`). Otherwise, the query becomes `["wi", "fi"]` along the way.

0 commit comments

Comments
 (0)