Hi,
   I'm using Ignite Persistence and Text Query in my project. but I got a
problem.
   here is the steps:
     1. put some data into IgniteCache, and with Persistence opened,  then
use TextQuery to get result。
     2. restart the system, after Ignite is ready, use TextQuery to get the
same result。

   when I debug on Windows Eclipse, it is correct most time.  but I failed
to get result on step 2 every time when I run jar on CentOS.  I've used
@QuerySqlField, and it perfoms all correct on both platform. so I was hoping
to get any advice.

sample code:
public class JetAddress implements Serializable {
    @QueryTextField
    private String restaddr;
}

//put
JetAddress p1 = new JetAddress(1, "john Doe has Master Degree MY.");
addrCache.put(1L, p1);


//query
TextQuery txt = new TextQuery(JetAddress.class, "john");

try (QueryCursor<Entry&lt;Long, JetAddress>> masters = addrCache.query(txt))
{
  for (Entry<Long, JetAddress> e : masters) {
    System.out.println(e.getValue().toString());
  }
}



Regards, 
jet





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

Reply via email to