Skip to content

Commit

Permalink
JDF-402 Updated Hibernate Search to 4.4.0.Final.
Browse files Browse the repository at this point in the history
Also performed minor tutorial updates.

Removed references to Errai annotations. Updated the POM to use
project properties to reference the Hibernate Search version.
  • Loading branch information
VineetReynolds committed Oct 14, 2013
1 parent 5c61459 commit 48c5273
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 47 deletions.
8 changes: 5 additions & 3 deletions demo/pom.xml
Expand Up @@ -36,6 +36,8 @@
<buildhelper.plugin.version>1.7</buildhelper.plugin.version>
<!-- Version of Jackson, since we do not rely on the RESTEasy BOM from EAP (yet). -->
<jackson.version>1.9.9</jackson.version>
<!-- Hibernate Search version -->
<hibernate.search.version>4.4.0.Final</hibernate.search.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -214,21 +216,21 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-orm</artifactId>
<version>4.3.0.Final</version>
<version>${hibernate.search.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-engine</artifactId>
<version>4.3.0.Final</version>
<version>${hibernate.search.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-analyzers</artifactId>
<version>4.3.0.Final</version>
<version>${hibernate.search.version}</version>
<scope>provided</scope>
</dependency>

Expand Down
Expand Up @@ -37,7 +37,6 @@
*/
@SuppressWarnings("serial")
@Entity

public class Event implements Serializable {

/* Declaration of fields */
Expand Down
Expand Up @@ -79,7 +79,7 @@ private Query buildLuceneQuery(String searchString, Double latitude, Double long
}
else {
// Find the terms of searchString with terms in event.name (weight of 10),
// event.description (weight of 1) and venue.name (weight of 3)
// event.description (weight of 1) and venue.name (weight of 5)
termsQuery = qb.keyword()
.onField("event.name").boostedTo(10f)
.andField("event.description")
Expand Down
1 change: 0 additions & 1 deletion tutorial/DataPersistence.asciidoc
Expand Up @@ -332,7 +332,6 @@ Users must be able to book tickets for performances. A `Booking` is associated w

Finally, both events and venues can have "media items", such as images or videos attached.

[[database-design]]
.Entity-Relationship Diagram
image::gfx/database-design.png[scaledwidth="70%"]

Expand Down

0 comments on commit 48c5273

Please sign in to comment.