Re: Question about QueryTextField

2017-07-20 Thread iostream
I corrected the problem. Like you suggested, using capital "A" does not work.
I have to use exact name of my attribute (which is small "a").

Thanks!



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Question-about-QueryTextField-tp15111p15164.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Question about QueryTextField

2017-07-20 Thread Evgenii Zhuravlev
Well, it works for me. Please share the reproducer and I will check it.

Evgenii

2017-07-20 10:10 GMT+03:00 iostream <sidds.mo...@gmail.com>:

> When I use search as -> "A:123" it does not give me any result even though
> there is a cache entry with A = 123. Can somebody please help me?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Question-about-QueryTextField-tp15111p15162.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>


Re: Question about QueryTextField

2017-07-20 Thread iostream
When I use search as -> "A:123" it does not give me any result even though
there is a cache entry with A = 123. Can somebody please help me?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Question-about-QueryTextField-tp15111p15162.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Question about QueryTextField

2017-07-19 Thread Evgenii Zhuravlev
Yeah, it's clear now.

You can use query syntax from Apache Lucene:
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html
Name of the field, in this case, should be in uppercase.

For example: "A:query"

Evgenii

2017-07-19 12:01 GMT+03:00 iostream <sidds.mo...@gmail.com>:

> I know how to use @QueryTextField (as can be seen in my example).
>
> When I perform a TextQuery it scans on all fields that I have used the
> annotation on. I want the TextQuery to run only on one field and not on all
> fields in my cache object.
>
> Is my question clear?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Question-about-QueryTextField-tp15111p15113.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>


Re: Question about QueryTextField

2017-07-19 Thread iostream
I know how to use @QueryTextField (as can be seen in my example).

When I perform a TextQuery it scans on all fields that I have used the
annotation on. I want the TextQuery to run only on one field and not on all
fields in my cache object.

Is my question clear?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Question-about-QueryTextField-tp15111p15113.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Question about QueryTextField

2017-07-19 Thread Evgenii Zhuravlev
Hi,

As it said in JavaDoc, you can use @QueryTextField as annotation on fields

Evgenii

2017-07-19 11:46 GMT+03:00 iostream <sidds.mo...@gmail.com>:

> Hi,
>
> Instead of performing a text query on the entire cache object as mentioned
> here (https://apacheignite.readme.io/v2.0/docs/cache-queries#text-queries
> ),
> can I perform a text query on a single attribute in my cache value object?
>
> Example -
>
> public class my_object {
> @QuerySqlField(index = true)
> @QueryTextField
> private String a;
> @QuerySqlField
> @QueryTextField
> private String b;
> @QuerySqlField
> private String c;
> }
>
> I want to perform a text query only on "a" on not on the "my_object"
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Question-about-QueryTextField-tp15111.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>


Question about QueryTextField

2017-07-19 Thread iostream
Hi,

Instead of performing a text query on the entire cache object as mentioned
here (https://apacheignite.readme.io/v2.0/docs/cache-queries#text-queries),
can I perform a text query on a single attribute in my cache value object?

Example -

public class my_object {
@QuerySqlField(index = true)
@QueryTextField
private String a;
@QuerySqlField
@QueryTextField
private String b;
@QuerySqlField
private String c;
}

I want to perform a text query only on "a" on not on the "my_object"

Thanks!



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Question-about-QueryTextField-tp15111.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.