@@ -90,14 +90,14 @@ var parseModelListSearchQuery = function (aModelListQuery, aQuery, aSearchOption
9090var parseScriptSearchQuery = function ( aScriptListQuery , aQuery ) {
9191 parseModelListSearchQuery ( aScriptListQuery , aQuery , {
9292 partialWordMatchFields : [ 'name' , 'author' , 'about' , 'meta.description' ] ,
93- fullWordMatchFields : [ 'meta.include' , 'meta.match' ] ,
93+ fullWordMatchFields : [ 'meta.include' , 'meta.match' ]
9494 } ) ;
9595} ;
9696exports . parseScriptSearchQuery = parseScriptSearchQuery ;
9797
9898var parseGroupSearchQuery = function ( aGroupListQuery , aQuery ) {
9999 parseModelListSearchQuery ( aGroupListQuery , aQuery , {
100- partialWordMatchFields : [ 'name' ] ,
100+ partialWordMatchFields : [ 'name' ]
101101 fullWordMatchFields : [ ] ,
102102 } ) ;
103103} ;
@@ -106,31 +106,38 @@ exports.parseGroupSearchQuery = parseGroupSearchQuery;
106106var parseDiscussionSearchQuery = function ( aDiscussionListQuery , aQuery ) {
107107 parseModelListSearchQuery ( aDiscussionListQuery , aQuery , {
108108 partialWordMatchFields : [ 'topic' ] ,
109- fullWordMatchFields : [ 'author' ] ,
109+ fullWordMatchFields : [ 'author' ]
110110 } ) ;
111111} ;
112112exports . parseDiscussionSearchQuery = parseDiscussionSearchQuery ;
113113
114114var parseCommentSearchQuery = function ( aCommentListQuery , aQuery ) {
115115 parseModelListSearchQuery ( aCommentListQuery , aQuery , {
116116 partialWordMatchFields : [ 'content' ] ,
117- fullWordMatchFields : [ 'author' ] ,
117+ fullWordMatchFields : [ 'author' ]
118118 } ) ;
119119} ;
120120exports . parseCommentSearchQuery = parseCommentSearchQuery ;
121121
122122var parseUserSearchQuery = function ( aUserListQuery , aQuery ) {
123123 parseModelListSearchQuery ( aUserListQuery , aQuery , {
124124 partialWordMatchFields : [ 'name' ] ,
125- fullWordMatchFields : [ ] ,
125+ fullWordMatchFields : [ ]
126126 } ) ;
127127} ;
128128exports . parseCommentSearchQuery = parseCommentSearchQuery ;
129129
130130var parseRemovedItemSearchQuery = function ( aRemovedItemListQuery , aQuery ) {
131131 parseModelListSearchQuery ( aRemovedItemListQuery , aQuery , {
132- partialWordMatchFields : [ 'content.*' ] ,
133- fullWordMatchFields : [ 'model' ] ,
132+ partialWordMatchFields : [
133+ 'removerName' ,
134+ 'reason' ,
135+
136+ 'content.*' , // NOTE: Watchpoint... Wildcards don't appear to work (yet?)...
137+ 'content.name' , // NOTE: ... instead use some exact key names. See #490
138+ 'content.author'
139+ ] ,
140+ fullWordMatchFields : [ 'model' ]
134141 } ) ;
135142} ;
136143exports . parseCommentSearchQuery = parseCommentSearchQuery ;
0 commit comments