Skip to content

Commit 8acfecc

Browse files
authored
Merge pull request #3822 from vespa-engine/bratseth/linguistics-query-type
Add 'linguistics' query.type
2 parents 4085f1a + 7b72a61 commit 8acfecc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

en/reference/query-api-reference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ <h2 id="query-model">Query Model Parameters</h2>
518518
Selects the query language syntax of the
519519
<a href="#model.querystring">model.queryString</a> parameter:
520520
<code>all</code>, <code>weakAnd</code>, <code>any</code>, <code>phrase</code>,
521-
<code>tokenize</code>, <code>web</code>, <code>yql</code> -
521+
<code>tokenize</code>, <code>web</code>, <code>linguistics</code>, </code><code>yql</code> -
522522
refer to <a href="simple-query-language-reference.html">simple query language reference</a>.
523523
Also see <a href="query-language-reference.html#userinput">YQL grammar</a>.
524524
</p>

en/reference/simple-query-language-reference.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@
4242
languages is not supported</li>
4343
</ul></td>
4444
</tr>
45+
<tr>
46+
<th>linguistics</th>
47+
<td>Pass the entire string as-is to the linguistics tokenizer and collect all tokens returned into a
48+
weakAnd item. This is suitable for applications that want full control over the linguistics processing,
49+
typically through a configured linguistics component.
50+
When this is used all aspects of linguistics processing including stemming and normalization is controlled
51+
by the linguistics component, and such settings on schema fields are disregarded.
52+
</td>
53+
</tr>
4554
<tr>
4655
<th>phrase</th>
4756
<td>The words of the query is considered a phrase,

0 commit comments

Comments
 (0)