Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15111

Document migration of HS5 annotations to Infinispan indexing annotations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 14.0.18.Final, 15.0.0.Final
    • None
    • None
    • None

      this is the algorithm to migrate HS5 annotations to Infinispan indexing annotations:
      searchable => (field index = true)
      projectable => (field stored = true)
      analyzed => type string && (field analyzed = true)
      sortable => !analyzed && ((field stored = true) || sortable annotation)
      aggregable => never (not possible to define with HS5 annotations)
      normalized => analyzed (specifying a normalizer in place of an analyzer)

      That is basically what we do now to interpreter the HS5 annotations on remote queries:
      https://github.com/infinispan/infinispan/blob/67394628c890c448ae221d0683b22d27702a3001/remote-query/remote-query-server/src/main/java/org/infinispan/query/remote/impl/indexing/search5/Search5MetadataCreator.java#L128

              dvagnero@redhat.com Dominika Borges
              dvagnero@redhat.com Dominika Borges
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: