Fixes #558, Make annotation content searchable
This commit is contained in:
parent
d8d683061e
commit
a53169a593
|
@ -203,6 +203,7 @@ Zotero.Search.prototype.addCondition = function(condition, operator, value, requ
|
|||
this.addCondition('creator', operator, part.text, false);
|
||||
this.addCondition('tag', operator, part.text, false);
|
||||
this.addCondition('note', operator, part.text, false);
|
||||
this.addCondition('annotation', operator, part.text, false);
|
||||
|
||||
if (part.inQuotes) {
|
||||
this.addCondition('fulltextContent', operator, part.text, false);
|
||||
|
@ -1540,6 +1541,16 @@ Zotero.SearchConditions = new function(){
|
|||
template: true // mark for special handling
|
||||
},
|
||||
|
||||
{
|
||||
name: 'annotation',
|
||||
operators: {
|
||||
contains: true,
|
||||
doesNotContain: true
|
||||
},
|
||||
table: 'annotations',
|
||||
field: 'text'
|
||||
},
|
||||
|
||||
{
|
||||
name: 'fulltextWord',
|
||||
operators: {
|
||||
|
|
|
@ -409,6 +409,7 @@ searchConditions.dateModified = Date Modified
|
|||
searchConditions.fulltextContent = Attachment Content
|
||||
searchConditions.programmingLanguage = Programming Language
|
||||
searchConditions.fileTypeID = Attachment File Type
|
||||
searchConditions.annotation = Annotation
|
||||
|
||||
fulltext.indexState.indexed = Indexed
|
||||
fulltext.indexState.unavailable = Unknown
|
||||
|
|
Loading…
Reference in New Issue
Block a user