Micha Kops avatar Micha Kops committed 536e43c

Readme updated.

Comments (0)

Files changed (2)

-# Lucene 4.0 Tutorial
+# Lucene 4.0 Snippets
 
 ---
-Some samples for the Lucene 4.0 beta API.
+Some samples for the differenct scenarios using the Lucene 4.0 beta API.
 
 For the full tutorial please feel free to take a look at my blog at [www.hascode.com].
 

src/main/java/com/hascode/tutorial/FacetingExample.java

 		TaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(taxoDir,
 				OpenMode.CREATE_OR_APPEND);
 
-		List<Book> books = Arrays.asList(new Book("Tom Sawyer", "Mark Twain",
-				"1840", "Novel"), new Book("Collected Tales", "Mark Twain",
-				"1850", "Novel"), new Book("The Trial", "Franz Kafka", "1901",
-				"Novel"));
+		List<Book> books = Arrays
+				.asList(new Book("Tom Sawyer", "Mark Twain", "1840", "Novel"),
+						new Book("Collected Tales", "Mark Twain", "1850",
+								"Novel"), new Book("The Trial", "Franz Kafka",
+								"1901", "Novel"), new Book("Some book",
+								"Some author", "1901", "Novel"));
 
 		createDocuments(writer, taxoWriter, books);
 		taxoWriter.commit();
 		System.out
 				.println("Search for books with the category:Novel returned : "
 						+ res.size()
-						+ "results\n---------------------------------");
+						+ " results\n---------------------------------");
 		for (final FacetResult r : res) {
 			System.out.println("\nMatching "
 					+ r.getFacetResultNode().getLabel()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.