mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-04 08:12:54 +00:00
Compare commits
1 Commits
query-fiel
...
issue/526b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
edcfa915ff |
@@ -214,6 +214,13 @@ pub trait PostingsWriter {
|
|||||||
if token.text.len() <= MAX_TOKEN_LEN {
|
if token.text.len() <= MAX_TOKEN_LEN {
|
||||||
term.set_text(token.text.as_str());
|
term.set_text(token.text.as_str());
|
||||||
self.subscribe(term_index, doc_id, token.position as u32, &term, heap);
|
self.subscribe(term_index, doc_id, token.position as u32, &term, heap);
|
||||||
|
} else {
|
||||||
|
info!(
|
||||||
|
"A token exceeding MAX_TOKEN_LEN ({}>{}) was dropped. Search for \
|
||||||
|
MAX_TOKEN_LEN in the documentation for more information.",
|
||||||
|
token.text.len(),
|
||||||
|
MAX_TOKEN_LEN
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
token_stream.process(&mut sink)
|
token_stream.process(&mut sink)
|
||||||
|
|||||||
Reference in New Issue
Block a user