You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by siva <si...@bizruntime.com> on 2020/11/30 13:39:35 UTC

Ignite cache TextQuery on JsonString data Field

Hi All,
I am using ApacheIgnite2.7.6 .Net Core.And I have .Net ClientServer App.And
for Cache creation using QueryEntity CacheConfiguration.And for 
Data loading in Ignite cache using DataStreamer AddData(key,model) method.
*
Model class:*



where Payload field contains jsonstring as data.
*for example Payload data*


*
<http://apache-ignite-users.70518.x6.nabble.com/file/t1379/TextQueryTableResult.png>
*

*Code:*


cursor cacheEntry contains no result.

How to get data in result and what i need to change?

Thanks.




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite cache TextQuery on JsonString data Field

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

I'm not sure that our text indexing will tokenize your JSON correctly. Can
you try just putting some simple word in that field and trying text search?

Regards,
-- 
Ilya Kasnacheev


пн, 30 нояб. 2020 г. в 16:39, siva <si...@bizruntime.com>:

> Hi All,
> I am using ApacheIgnite2.7.6 .Net Core.And I have .Net ClientServer App.And
> for Cache creation using QueryEntity CacheConfiguration.And for
> Data loading in Ignite cache using DataStreamer AddData(key,model) method.
> *
> Model class:*
>
>
>
> where Payload field contains jsonstring as data.
> *for example Payload data*
>
>
> *
> <
> http://apache-ignite-users.70518.x6.nabble.com/file/t1379/TextQueryTableResult.png
> >
> *
>
> *Code:*
>
>
> cursor cacheEntry contains no result.
>
> How to get data in result and what i need to change?
>
> Thanks.
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite cache TextQuery on JsonString data Field

Posted by Pavel Tupitsyn <pt...@apache.org>.
I can't see any details in the email too.
However, code is visible on Nabble [1]
Weird.

[1]
http://apache-ignite-users.70518.x6.nabble.com/Ignite-cache-TextQuery-on-JsonString-data-Field-td34743.html

On Mon, Dec 14, 2020 at 5:03 PM Ilya Kasnacheev <il...@gmail.com>
wrote:

> Hello!
>
> Unfortunately, nothing is visible in your e-mails.
> Please provide images/files as links.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пн, 30 нояб. 2020 г. в 20:00, siva <si...@bizruntime.com>:
>
>> Hi,
>> please find the Cache configuration details give below.
>>
>>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>

Re: Ignite cache TextQuery on JsonString data Field

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Unfortunately, nothing is visible in your e-mails.
Please provide images/files as links.

Regards,
-- 
Ilya Kasnacheev


пн, 30 нояб. 2020 г. в 20:00, siva <si...@bizruntime.com>:

> Hi,
> please find the Cache configuration details give below.
>
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite cache TextQuery on JsonString data Field

Posted by siva <si...@bizruntime.com>.
Hi,
please find the Cache configuration details give below.







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite cache TextQuery on JsonString data Field

Posted by ibelyakov <ig...@gmail.com>.
Can you provide your CacheConfiguration?

Igor



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite cache TextQuery on JsonString data Field

Posted by siva <si...@bizruntime.com>.
Hi,
I have modified like this but still cursor cacheEntry contains no result.






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite cache TextQuery on JsonString data Field

Posted by ibelyakov <ig...@gmail.com>.
Hi,

Seems like you should use "Person" as a type for the TextQuery instead of
"CommonConstruction", here:
/var textquery = new TextQuery(typeof(CommonConstruction), "Mobile");/

Igor




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/