Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

the demo was changed so that the "path" field isn't tokenized anymore: adapt the documentation to that change

Daniel Naber004407a68841
diff --git a/src/java/overview.html b/src/java/overview.html
index 46f6268812d..0ad1252fa53 100644
--- a/src/java/overview.html
+++ b/src/java/overview.html
@@ -102,33 +102,23 @@ To demonstrate these, try something like:
<blockquote><tt>> <b>java -cp lucene.jar:lucene-demo.jar org.apache.lucene.demo.IndexFiles rec.food.recipes/soups</b></tt>
<br><tt>adding rec.food.recipes/soups/abalone-chowder</tt>
<br><tt>&nbsp; </tt>[ ... ]
+
<p><tt>> <b>java -cp lucene.jar:lucene-demo.jar org.apache.lucene.demo.SearchFiles</b></tt>
<br><tt>Query: <b>chowder</b></tt>
<br><tt>Searching for: chowder</tt>
<br><tt>34 total matching documents</tt>
-<br><tt>0. rec.food.recipes/soups/spam-chowder</tt>
-<br><tt>&nbsp; </tt>[ ... thirty-four documents contain the word "chowder",
-"spam-chowder" with the greatest density.]
-<p><tt>Query: <b>path:chowder</b></tt>
-<br><tt>Searching for: path:chowder</tt>
-<br><tt>31 total matching documents</tt>
-<br><tt>0. rec.food.recipes/soups/abalone-chowder</tt>
-<br><tt>&nbsp; </tt>[ ... only thrity-one have "chowder" in the "path"
-field. ]
-<p><tt>Query: <b>path:"clam chowder"</b></tt>
-<br><tt>Searching for: path:"clam chowder"</tt>
-<br><tt>10 total matching documents</tt>
-<br><tt>0. rec.food.recipes/soups/clam-chowder</tt>
-<br><tt>&nbsp; </tt>[ ... only ten have "clam chowder" in the "path" field.
-]
-<p><tt>Query: <b>path:"clam chowder" AND manhattan</b></tt>
-<br><tt>Searching for: +path:"clam chowder" +manhattan</tt>
+<br><tt>1. rec.food.recipes/soups/spam-chowder</tt>
+<br><tt>&nbsp; </tt>[ ... thirty-four documents contain the word "chowder" ... ]
+
+<p><tt>Query: <b>"clam chowder" AND Manhattan</b></tt>
+<br><tt>Searching for: +"clam chowder" +manhattan</tt>
<br><tt>2 total matching documents</tt>
-<br><tt>0. rec.food.recipes/soups/clam-chowder</tt>
-<br><tt>&nbsp; </tt>[ ... only two also have "manhattan" in the contents.
-]
+<br><tt>1. rec.food.recipes/soups/clam-chowder</tt>
+<br><tt>&nbsp; </tt>[ ... two documents contain the phrase "clam chowder"
+and the word "manhattan" ... ]
<br>&nbsp;&nbsp;&nbsp; [ Note: "+" and "-" are canonical, but "AND", "OR"
and "NOT" may be used. ]</blockquote>
+
The <a href="../../src/demo/org/apache/lucene/demo/IndexHTML.java">IndexHtml</a> demo is more sophisticated.&nbsp;
It incrementally maintains an index of HTML files, adding new files as
they appear, deleting old files as they disappear and re-indexing files