projects
/
xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd2ad7
)
Replace any spaces with regex '.*' so multi-word search works on similar strings.
author
Ben Thompson
<ben@xtuple.com>
Thu, 22 May 2014 19:07:19 +0000
(15:07 -0400)
committer
Ben Thompson
<ben@xtuple.com>
Thu, 22 May 2014 19:07:19 +0000
(15:07 -0400)
node-datasource/lib/query/freetext_query.js
patch
|
blob
|
history
diff --git
a/node-datasource/lib/query/freetext_query.js
b/node-datasource/lib/query/freetext_query.js
index
da8bff7
..
29a88f2
100644
(file)
--- a/
node-datasource/lib/query/freetext_query.js
+++ b/
node-datasource/lib/query/freetext_query.js
@@
-45,7
+45,8
@@
noarg:true, regexp:true, undef:true, strict:true, trailing:true, white:true */
parameters : [{
attribute: _.pluck(columns, 'name'),
operator: 'MATCHES',
- value: that.query.q
+ /* Replace any spaces with regex '.*' so multi-word search works on similar strings. */
+ value: that.query.q.replace(' ', '.*')
}]
}, _.omit(this.query, 'q'));