mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Escape id string being passed into Lucene.
This commit is contained in:
parent
530b82c30b
commit
ba73f4ed9a
@ -404,7 +404,7 @@ class LuceneQuery implements KeywordSearchQuery {
|
||||
contentIDStr = Server.getChunkIdString(solrObjectId, chunkID);
|
||||
}
|
||||
|
||||
String idQuery = Server.Schema.ID.toString() + ":" + contentIDStr;
|
||||
String idQuery = Server.Schema.ID.toString() + ":" + KeywordSearchUtil.escapeLuceneQuery(contentIDStr);
|
||||
q.setShowDebugInfo(DEBUG); //debug
|
||||
q.addFilterQuery(idQuery);
|
||||
q.addHighlightField(highlightField);
|
||||
|
Loading…
x
Reference in New Issue
Block a user