Comments (2)
You can change the search from and
to or
, but not from a query string directly as you wrote. The removal of a keyword (e.g. `-motorbike') is not supported without a lot of extra work.
If you set the type
on your query instance, you can change it from an and
to an or
search:
/**
* Set `type` to "union" or "intersect", aliased as
* "or" and "and".
*
* @param {String} type
* @return {Query} for chaining
* @api public
*/
Query.prototype.type = function(type){
this._type = types[type];
return this;
};
Just an FYI, there will be a new version soon that is a bit more extensible for implementing something a little closer to what you want.
from reds.
Thanks! Watiting for it :)
from reds.
Related Issues (20)
- Unicode support for search and index HOT 1
- Upgrade to Natural 0.1.17
- intersection results, or operator not applied HOT 4
- Latest Merge for multiple keywords is not published on npm
- add option to ignore phonetics functionality HOT 2
- Not
- Not Returning Results HOT 1
- Crash with exports.stripStopWords
- 'or' documentation incorrect. HOT 1
- Help with alternative data storage HOT 1
- Can't install reds on windows 8 HOT 1
- Can reds support fuzzy searching? HOT 2
- Install Error HOT 2
- unpin dependencies HOT 2
- Towards a pluggable Reds HOT 2
- How do I point to the redis server? HOT 1
- Parallel createSearch HOT 1
- [stockholmux/redredisearch] Parallel createSearch
- 0.1.3 doesn't install on Node.js 0.8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reds.