Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with multiple inq. #26

Open
qubyte opened this issue Jan 22, 2014 · 2 comments
Open

Problems with multiple inq. #26

qubyte opened this issue Jan 22, 2014 · 2 comments

Comments

@qubyte
Copy link

qubyte commented Jan 22, 2014

Working with hatch I came across an issue with the following query:

var query = {
    fulltext: searchString,
    where: { location: { inq: ['GB', 'ALL'] } },
    limit: limit,
    offset: offset,
    max: Date.now(),
    min: '-inf'
};

The where clause causes the searchString to be ignored.

@anatoliychakkaev
Copy link

At the moment it's not possible to filter by both fulltext and query. By
'not possible' I mean it was not implemented, but I think it's not a big
deal to add it. If you like to submit that pull request I would be happy to
merge it. Thanks!

On Wed, Jan 22, 2014 at 11:40 AM, Mark S. Everitt
notifications@github.comwrote:

Working with hatch I came across an issue with the following query:

var query = {
fulltext: searchString,
where: { location: { inq: ['GB', 'ALL'] } },
limit: limit,
offset: offset,
max: Date.now(),
min: '-inf'};

The where clause causes the searchString to be ignored.


Reply to this email directly or view it on GitHubhttps://github.com//issues/26
.

@1602
Copy link
Contributor

1602 commented Jan 22, 2014

Just to clarify: we intersect with other filters specified by 'where' but
not with 'inq' conditions.

On Wed, Jan 22, 2014 at 11:49 AM, Anatoliy Chakkaev <
notifications@github.com> wrote:

At the moment it's not possible to filter by both fulltext and query. By
'not possible' I mean it was not implemented, but I think it's not a big
deal to add it. If you like to submit that pull request I would be happy
to
merge it. Thanks!

On Wed, Jan 22, 2014 at 11:40 AM, Mark S. Everitt
notifications@github.comwrote:

Working with hatch I came across an issue with the following query:

var query = {
fulltext: searchString,
where: { location: { inq: ['GB', 'ALL'] } },
limit: limit,
offset: offset,
max: Date.now(),
min: '-inf'};

The where clause causes the searchString to be ignored.


Reply to this email directly or view it on GitHub<
https://github.com/jugglingdb/redis-hq-adapter/issues/26>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-33014788
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants