lucene-dev mailing list archives

[jira] Created: (LUCENE-680) demo war: All links returned by results.jsp are "null"

Date

Sun, 08 Oct 2006 22:59:19 GMT

demo war: All links returned by results.jsp are "null"
------------------------------------------------------
Key: LUCENE-680
URL: http://issues.apache.org/jira/browse/LUCENE-680
Project: Lucene - Java
Issue Type: Bug
Components: Examples
Affects Versions: 2.0.1
Environment: RHEL 3.0, tomcat 4.1.31, jdk 1.4.2_04
Reporter: Ted Cahall
Priority: Minor
The file org/apache/lucene/demo/HTMLDocument.java uses a field named "path" to store the URL
for each document.
The demo results.jsp retrieves the url with a field named "url" - and therefore there is no
match.
A simple change to results.jsp as follow corrects this:
OLD:
String url = doc.get("url");
NEW
String url = doc.get("path");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org