Ok that sounds like a bug. Thanks for letting us know, I will take a look this afternoon and try to track it down for you.
Thanks! Aaron On Mon, Jun 16, 2014 at 12:58 PM, Dibyendu Bhattacharya < [email protected]> wrote: > Yes, I get all records matched the search if I comment the sorting , i.e. > if I comment below line, I got the results. > > blurQuery.addToSortFields(new SortField("family", "timestamp", true)); > > > > > On Mon, Jun 16, 2014 at 10:02 PM, Aaron McCurry <[email protected]> > wrote: > > > On Mon, Jun 16, 2014 at 12:00 PM, Dibyendu Bhattacharya < > > [email protected]> wrote: > > > > > I got 0 results. It was Record query. > > > > > > > And if you run the same query without any of the sort feature turned on > do > > you get a different result? > > > > > > > > > > Dib > > > On Jun 16, 2014 9:08 PM, "Aaron McCurry" <[email protected]> wrote: > > > > > > > On Mon, Jun 16, 2014 at 10:19 AM, Dibyendu Bhattacharya < > > > > [email protected]> wrote: > > > > > > > > > Hi Aaron, > > > > > > > > > > I wanted to implement sorting of records during search, but it > seems > > > > > sorting feature not working. > > > > > > > > > > This is what I tried. > > > > > > > > > > I defined a Column Definition as long type and set the sortable as > > > true > > > > > during table creation, and populate the long field with timestamp > > value > > > > > during indexing. > > > > > > > > > > During query I used ( timestamp is the column name that is > sortable) > > > > > > > > > > Query query = new Query(); > > > > > query.setQuery(queryString); > > > > > BlurQuery blurQuery = new BlurQuery(); > > > > > blurQuery.setQuery(query); > > > > > blurQuery.setStart(pageSize); > > > > > blurQuery.setFetch(fetchSize); > > > > > blurQuery.addToSortFields(new SortField("family", "timestamp", > > true)); > > > > > Selector selector = new Selector(); > > > > > selector.setRecordOnly(true); > > > > > selector.addToColumnFamiliesToFetch("family"); > > > > > blurQuery.setSelector(selector); > > > > > > > > > > results = client.query("table", blurQuery); > > > > > > > > > > > > > > > But this does not return any result. > > > > > > > > > > > > > What is the result? An error? Or 0 results? > > > > > > > > Also there can be some confusion about Record and Row query results > > > because > > > > they are stored in two different fields. > > > > > > > > > > http://incubator.apache.org/blur/docs/0.2.2/Blur.html#Struct_FetchResult > > > > > > > > Let me know if there is anything else I can help with. I will rerun > > some > > > > tests later today to make sure that the feature does in fact work. > > > > > > > > Aaron > > > > > > > > > > > > > > > > > > My schema is very simple, we have one record for every row and > every > > > > > record have around 5 columns. > > > > > > > > > > Can you please let me know if I am missing anything. > > > > > > > > > > Regards, > > > > > Dibyendu > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
