Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-3429

Add a lambda-based syntax to the projection DSL

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.Alpha2
    • Component/s: engine
    • Labels:
      None

      Description

      In particular, allow this, to be consistent with the predicate and sort DSL:

      • .asProjection( f -> f.field( "title", String.class ).toProjection() )
      • .composite( Book::new, f -> f.field( "title", String.class ).toProjection() )

      That should allow us to simplify a few calls in our tests.

        Attachments

          Activity

            People

            • Assignee:
              yrodiere Yoann Rodière
              Reporter:
              yrodiere Yoann Rodière
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: