FieldSelector support for Querydsl lucene

Bug #734703 reported by Lassi Immonen on 2011-03-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Lucene allows to pass FieldSelector class that can be used to select which fields are actually loaded from the disk. This needs to be passed as argument to Searcher.doc(int, FieldSelector).

Maybe this could be supported via a parameter to the projection method :


Additionally this could also be supported via a list of fields to be loaded as Querydsl expressions :

  query.list(prop1, prop2, prop3);

The second approach would support only the LOAD and NO_LOAD options

Lassi Immonen (lassi-immonen) wrote :

I think the first version is anyway needed, the second could be nice option.

Support has been added :

     * Set the given FieldSelector to the query
     * @param fieldSelector
     * @return
    public Q load(FieldSelector fieldSelector);

     * Load only the fields of the given paths
     * @param paths
     * @return
    public Q load(Path<?>... paths);

Changed in querydsl:
status: New → Fix Committed

Released in 2.2.0-beta3

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers