incubator-blur-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron McCurry <amccu...@gmail.com>
Subject Re: Sorting in Apache Blur 0.2.2.
Date Mon, 16 Jun 2014 16:32:37 GMT
On Mon, Jun 16, 2014 at 12:00 PM, Dibyendu Bhattacharya <
dibyendu.bhattachary@gmail.com> 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" <amccurry@gmail.com> wrote:
>
> > On Mon, Jun 16, 2014 at 10:19 AM, Dibyendu Bhattacharya <
> > dibyendu.bhattachary@gmail.com> 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
> > >
> > >
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message