You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by "@Nandan@" <na...@gmail.com> on 2017/05/12 02:06:08 UTC

Reg:- CQL SOLR Query Not gives result

Hi ,

In my table, I am having few records and implemented SOLR for partial
search but not able to retrieve data.

SELECT * from revall_book_by_title where solr_query = 'language:中';
SELECT * from revall_book_by_title where solr_query = 'language:中*';

None of them are working.
Any suggestions.

RE: Reg:- CQL SOLR Query Not gives result

Posted by Jacques-Henri Berthemet <ja...@genesys.com>.
While this is indeed a problem with DSE, your problem looks related to CJK Lucene indexing, in this context I think your query does not make sense.
(see CJK: https://en.wikipedia.org/wiki/CJK_characters)

If you properly configured your indexing to handle CJK, as it looks like you’re searching for Chinese, using wildcards with CJK does not make sense. 中 can be considered as a word, not a letter, so partial matches using wildcards don’t make sense. Also, CJK analyzer is indexing bi-grams, so you should search for pairs of characters.

--
Jacques-Henri Berthemet

From: Jonathan Haddad [mailto:jon@jonhaddad.com]
Sent: vendredi 12 mai 2017 04:21
To: @Nandan@ <na...@gmail.com>; user@cassandra.apache.org
Subject: Re: Reg:- CQL SOLR Query Not gives result

This is a question for datastax support, not the Apache mailing list. Folks here are more than happy to help with open source, Apache Cassandra questions, if you've got one.
On Thu, May 11, 2017 at 9:06 PM @Nandan@ <na...@gmail.com>> wrote:
Hi ,

In my table, I am having few records and implemented SOLR for partial search but not able to retrieve data.

SELECT * from revall_book_by_title where solr_query = 'language:中';
SELECT * from revall_book_by_title where solr_query = 'language:中*';

None of them are working.
Any suggestions.

Re: Reg:- CQL SOLR Query Not gives result

Posted by Jonathan Haddad <jo...@jonhaddad.com>.
This is a question for datastax support, not the Apache mailing list. Folks
here are more than happy to help with open source, Apache Cassandra
questions, if you've got one.
On Thu, May 11, 2017 at 9:06 PM @Nandan@ <na...@gmail.com>
wrote:

> Hi ,
>
> In my table, I am having few records and implemented SOLR for partial
> search but not able to retrieve data.
>
> SELECT * from revall_book_by_title where solr_query = 'language:中';
> SELECT * from revall_book_by_title where solr_query = 'language:中*';
>
> None of them are working.
> Any suggestions.
>