Open zhaohanweng opened 8 years ago
@zeeshanlakhani - I don't believe the current PB message for a YZ search allows this, does it?
@lukebakken due to backwards compat reasons, it's called filter -> https://github.com/basho/yokozuna/blob/dbdaaaf6767cd3bf01b982f36ef8325af505cafa/src/yz_pb_search.erl#L135.
@zeeshanlakhani - thanks. In the user's example, filterQuery
is passed via the filter
PB message field (here), yet he's getting those results (?)
@zhaohanweng - could you please provide sample data so I can try to reproduce this issue?
Hi, thank you for the comments, I just figured that I can just pass {!geofilt pt=43.76190533278233,-79.408447073731 sfield=onboardingCoords d=0.1}
in q
instead of fq
and everything works now.
But the error with fq
should still be resolved.
Sorry I dont have any sample data. To reproduce this, only need "lat, long" data in a location field, and index it.
@zhaohanweng - thanks for letting us know.
When I call
This works.
But If I use the nodejs client, and pass in
filterQuery
in the search,I got the following error.
Is the
filterQuery
the same asfq
? If not how can I pass infq
using nodejs client.Here's my schema: