mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
improve comment about snippet queries
This commit is contained in:
parent
40b3a52f92
commit
6fa88eb132
@ -138,7 +138,11 @@ class QueryResults {
|
||||
if (StringUtils.isBlank(snippet)) {
|
||||
final String snippetQuery = KeywordSearchUtil.escapeLuceneQuery(termString);
|
||||
try {
|
||||
//this doesn't work for regex queries...
|
||||
/*
|
||||
* this doesn't work for regex queries... But that is
|
||||
* okay because regex queries always have snippets made
|
||||
* from the content_str field we pull back from Solr
|
||||
*/
|
||||
snippet = LuceneQuery.querySnippet(snippetQuery, hit.getSolrObjectId(), hit.getChunkId(), !keywordSearchQuery.isLiteral(), true);
|
||||
} catch (NoOpenCoreException e) {
|
||||
logger.log(Level.WARNING, "Error querying snippet: " + snippetQuery, e); //NON-NLS
|
||||
|
Loading…
x
Reference in New Issue
Block a user