RiakSearch returns all the records when the search term is of the form "<sometext>_<singlecharacter>".

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RiakSearch returns all the records when the search term is of the form "<sometext>_<singlecharacter>".

vijayakumar
Hi,
  RiakSearch is treating the queryterm as "*" when queryterm is of the form "<sometext>_<singlecharacter>"  (eg:name_1,name_1) and returns the entire record set. Is this a known issue?

Example:

Key   Field1  Field2
key1    field_a  sometext
key2    field_c  sometext.


When queried for Field1 with queryterm as "field_a"  solr search returns both key1 and key2 instead of key1 alone.

Regards,
Vijayakumar.


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: RiakSearch returns all the records when the search term is of the form "<sometext>_<singlecharacter>".

Ryan Zezeski-2
Vijayakumar,

You must be using the standard analyzer [1] for "Field 1" which will split on '_' and drop '1'.  You'll either want to use the whitespace analyzer or noop analyzer in this scenario.


On Thu, Mar 1, 2012 at 12:27 AM, vijayakumar <[hidden email]> wrote:
Hi,
  RiakSearch is treating the queryterm as "*" when queryterm is of the form "<sometext>_<singlecharacter>"  (eg:name_1,name_1) and returns the entire record set. Is this a known issue?

Example:

Key   Field1  Field2
key1    field_a  sometext
key2    field_c  sometext.


When queried for Field1 with queryterm as "field_a"  solr search returns both key1 and key2 instead of key1 alone.

Regards,
Vijayakumar.


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: RiakSearch returns all the records when the search term is of the form "<sometext>_<singlecharacter>".

vijayakumar
Thanks Ryan. Yes changing analyzer fixes the issue.

Regards,
Vijayakumar.

On Thu, Mar 1, 2012 at 11:18 AM, Ryan Zezeski <[hidden email]> wrote:
Vijayakumar,

You must be using the standard analyzer [1] for "Field 1" which will split on '_' and drop '1'.  You'll either want to use the whitespace analyzer or noop analyzer in this scenario.


On Thu, Mar 1, 2012 at 12:27 AM, vijayakumar <[hidden email]> wrote:
Hi,
  RiakSearch is treating the queryterm as "*" when queryterm is of the form "<sometext>_<singlecharacter>"  (eg:name_1,name_1) and returns the entire record set. Is this a known issue?

Example:

Key   Field1  Field2
key1    field_a  sometext
key2    field_c  sometext.


When queried for Field1 with queryterm as "field_a"  solr search returns both key1 and key2 instead of key1 alone.

Regards,
Vijayakumar.


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com