Hello John, > getting all the documents and analyzing their result fields?
is almost not ever possible. Lucene stored fields usually are really slow. when FunctionQueries is backed of field values it uses Lucene FieldCache, which is array of field values that's damn faster. You are welcome. On Thu, Jan 17, 2013 at 8:20 PM, John <fatmanc...@gmail.com> wrote: > Hi, > > Is there any performance boost when using FunctionQuery over getting all > the documents and analyzing their result fields? > > As far as I understand, Function Query does exactly that, for each matched > document it feches the fields you're interested at, and then it calculates > whatever score mechanism you need. > > Are there some special configurations that I can use that take make > FunctionQueries faster? > > Cheers, > John > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>