You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to ["?", ",", ".", "!"].
1147
1147
pubhighlight_delimiters:Option<Vec<String>>,
1148
-
/// Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.
1149
-
pubquote_negated_words:Option<bool>,
1150
1148
/// Set score_threshold to a float to filter out chunks with a score below the threshold.
1151
1149
pubscore_threshold:Option<f32>,
1152
1150
/// Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.
@@ -1265,14 +1263,7 @@ pub async fn search_chunk(
1265
1263
1266
1264
let page = data.page.unwrap_or(1);
1267
1265
1268
-
letmut parsed_query = ParsedQuery{
1269
-
query: data.query.clone(),
1270
-
quote_words:None,
1271
-
negated_words:None,
1272
-
};
1273
-
if data.quote_negated_words.unwrap_or(false){
1274
-
parsed_query = parse_query(data.query.clone());
1275
-
}
1266
+
let parsed_query = parse_query(data.query.clone());
1276
1267
1277
1268
let tx_ctx = sentry::TransactionContext::new("search","search_chunks");
1278
1269
let transaction = sentry::start_transaction(tx_ctx);
/// Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to ["?", ",", ".", "!"].
1103
1103
pubhighlight_delimiters:Option<Vec<String>>,
1104
-
/// Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.
1105
-
pubquote_negated_words:Option<bool>,
1106
1104
/// Set score_threshold to a float to filter out chunks with a score below the threshold.
1107
1105
pubscore_threshold:Option<f32>,
1108
1106
/// Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.
@@ -1122,7 +1120,6 @@ impl From<SearchWithinGroupData> for SearchChunkData {
0 commit comments