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

Define default resolution for date bridges

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.CR1
    • Fix Version/s: 5.0.0.CR2
    • Component/s: engine
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

      Description

      Or at least review the bridge initialization:

      This does not seem to work:

      @Field(analyze = Analyze.NO, bridge = @FieldBridge(impl = StringEncodingDateBridge.class))
      @DateBridge(resolution = Resolution.DAY)
      public Date getDate() {
      	return date;
      }
      

      This works

      @Field(analyze = Analyze.NO, bridge = @FieldBridge(impl = StringEncodingDateBridge.class, params = { @Parameter(name = "resolution", value = "DAY") }))
      public Date getDate() {
      	return date;
      }
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                hardy.ferentschik Hardy Ferentschik
                Reporter:
                hardy.ferentschik Hardy Ferentschik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: