On Mon, Oct 6, 2014 at 3:38 PM, Tom Hood <[email protected]> wrote: > Hi, > > If I want to iterate all rows in a blur index, is the recommended way to > just do a query on "*"?
I think it's fair to say it's recommended *not* to do that (iterate over all rows) at all:) On a tiny index, sure, a *:* query works. But again, beyond playing around, going deep into results will only cause problems - maybe you could share what you're trying to achieve we could help with a different approach? We are, btw, working on some set of features that will provide some simple constructs that will make it easier for you to achieve something like this... they'll be in the next release but will be experimental only. > It looks like the Selector.setLocationId isn't something I'm supposed to > use although it looks like it might provide a means of doing this (i.e. > exposing IndexReader.document(docId)). I don't know the set of all rowids > in advance, so Selector.setRowId won't help here. Set your blurQuery.setSelector(new Selector()) (to tell blur to bring back all the columns) and adjust the fetch size. Does that help? --tim
