anchor.diff:  
   ==== Packaging Hibernate OGM applications for WildFly 10
   
  +When using WildFly several of the technologies it includes are automatically enabled.
  +For example Hibernate ORM is made available to your applications if your `persistence.xml`
  +defines a persistence unit using Hibernate as persistence provider
  +(or is not specifying any provider, as Hibernate is the default one).
  +
  +Similarly, Hibernate Search is automatically activated and made available on the user's application
  +classpath if and when the application server detects the need for it.
  +This is the default behaviour, but you are in control and can override this all;
  +see the https://docs.jboss.org/author/display/WFLY10/JPA+Reference+Guide[WildFly JPA Reference Guide]
  +for a full list of properties you can explicitly set.
  +
  +WildFly 10 however does not include Hibernate OGM and the compatible Hibernate ORM and Hibernate Search
  +versions and it will require some configuration to make everything works.
  +
  +Set up WildFly after downloading the modules::
   You can download the pre-packaged module ZIP for this version of Hibernate OGM from:
   
   * https://downloads.sourceforge.net/project/hibernate/hibernate-ogm/{hibernate-ogm-version}/hibernate-ogm-modules-{hibernate-ogm-version}-{hibernate-wildfly-classifier}.zip[Sourceforge]
   * https://repo1.maven.org/maven2/org/hibernate/ogm/hibernate-ogm-modules/{hibernate-ogm-version}/hibernate-ogm-modules-{hibernate-ogm-version}-{hibernate-wildfly-classifier}.zip[The Maven Central repository]
   
  -Hibernate OGM {hibernate-ogm-version} requires Hibernate ORM {hibernate-orm-version} that is not included
  -with WildFly 10.
  -
  -For this reason, you also need the pre-packaged module ZIP for Hibernate ORM, you can download it
  -https://repo1.maven.org/maven2/org/hibernate/hibernate-orm-modules/{hibernate-orm-version}/hibernate-orm-modules-{hibernate-orm-version}-{hibernate-wildfly-classifier}.zip[from Maven Central]
  -
  -Unpack the archives into the `modules` folder of your WildFly 10 installation.
  +Hibernate OGM {hibernate-ogm-version} requires Hibernate ORM {hibernate-orm-version}
  +and Hibernate Search {hibernate-search-verision}.
  +
  +These versions are not included in WildFly 10 but you can download the pre-package ZIP modules from 
  +Maven Central:
  +
  +* https://repo1.maven.org/maven2/org/hibernate/hibernate-orm-modules/{hibernate-orm-version}/hibernate-orm-modules-{hibernate-orm-version}-{hibernate-wildfly-classifier}.zip[Hibernate ORM modules]
  +* http://repo1.maven.org/maven2/org/hibernate/hibernate-search-modules/{hibernate-search-version}/hibernate-search-modules-{hibernate-search-version}-{hibernate-wildfly-classifier}.zip[Hibernate Search modules]
  +
  +Once you have the archives, you need to 
  +unpack them into the `modules` folder of your WildFly 10 installation.
   The modules included are:
   
   * _org.hibernate.ogm_, the core Hibernate OGM library.
   * _org.hibernate.ogm.<%DATASTORE%>_, one module for each datastore, with _<%DATASTORE%>_ being one of _infinispan_, _mongodb_ etc.
   * _org.hibernate.orm_, the Hibernate ORM libraries.
  +* _org.hibernate.search_, the Hibernate Search libraries.
   * Several shared dependencies such as _org.hibernate.hql:<%VERSION%>_ (containing the query parser) and others
   
  -The module slot to use for Hibernate OGM {hibernate-ogm-version} is `{hibernate-ogm-module-slot}` as the format of the slot name does not include the "micro" part of the project version.
  -
  -To upgrade the Hibernate ORM version you will need to add the following property to your `persistence.xml`:
  -
  -.Property to set a different Hibernate ORM version
  +The module slot to use for Hibernate OGM {hibernate-ogm-version} is `{hibernate-ogm-module-slot}`
  +as the format of the slot name does not include the "micro" part of the project version.
  +
  +You will also need to set the property `wildfly.jpa.hibernate.search.module`
  +to `org.hibernate.search.orm:{hibernate-search-module-slot}` in your `persistence.xml`.
  +This way your application will use the right Hibernate ORM and Hibernate Search version
  +(and not the one shipped with WildFly).
  +
  +.Property for enabling a Hibernate Search and Hibernate ORM version compatible with Hibernate OGM
   ====
   [source, XML]
   [subs="verbatim,attributes"]
   ----
  -<property name="jboss.as.jpa.providerModule" value="org.hibernate:{hibernate-orm-major-minor-version}"/>
  -----
  -====
  -
  -You will find more details in the
  -http://docs.jboss.org/hibernate/orm/current/topical/html_single/wildfly/Wildfly.html[Using latest Hibernate ORM within WildFly] paragraph of the
  -Hibernate ORM documentation.
  -
  -If you are using Maven, you can download and set up your wildfly with the following snippet:
  +<property name="wildfly.jpa.hibernate.search.module" value="org.hibernate.search.orm:{hibernate-search-module-slot}"/>
  +----
  +====
  +
  +The Hibernate Search documentation explains the details of downloading and deploying a custom version:
  +https://docs.jboss.org/hibernate/search/{hibernate-search-major-minor-version}/reference/en-US/html_single/#_update_and_activate_latest_hibernate_search_version_in_wildfly[Update and activate latest Hibernate Search version in WildFly].
  +
  +Set up WildFly using Maven::
  +If you are using Maven, you can download and set up your WildFly with the following snippet:
   
   .Maven example to prepare a WildFly installation for integration tests
   ====
  
positive.code: Dependencies: org.hibernate.ogm:{hibernate-ogm-module-slot} services, org.hibernate.ogm.<%DATASTORE%>:{hibernate-ogm-module-slot} services
  ----
  
  Using jboss-deployment-structure.xml::
  This is a JBoss-specific descriptor.
  Add a `WEB-INF/jboss-deployment-structure.xml` in your archive with the following content (replace _<%DATASTORE%>_ with the right value for your chosen datastore):
  
  
negative.code: ----
  ====
  
  Now that WildFly is ready, you can include the dependency in your application in two ways:
  
  Include dependencies using the manifest::
  Add this entry to the MANIFEST.MF in your archive (replace _<%DATASTORE%>_ with the right value for your chosen datastore):
  
  [source]
  