Hello,
I am trying to do search forStandalone. I made it up to configuration
level. All is working well. But when I try to search in
http://localhost:8080/luceneweb/index.jsp,
I get
Welcome to the Lucene Template application. (This is the header)
ERROR opening the Index - contact
The index location specified in the configuration file must be the same as
that specified for the -index parameter when running IndexHTML . Use an
absolute path for both to make sure its looking at the same location.
Looks like you may need to restart Tomcat to see your new configuration.jsp
Ok, I got it to work. I can now see a list of search results. But when I
click on the links in those search results, I get that the file is not
found. It has this URL
http://localhost:8080/webapps/tomcat-docs/catalina/docs/api/org/apache/catal
ina/deploy/Test.html
I dont even see
I say: try it :)
Otis
--- Aaron Galea [EMAIL PROTECTED] wrote:
I am not sure but I was going to do it by using a QueryParser and
creating a
filter that iterates over the documents. For each document I check
the
directory field and use the String.startsWith() function to make it
kinda
work
I thought this was my problem :-), anyhow can I just write an analyzer that
does not tokenize the search string and use it with QueryPaser?
Thanks,
Rob
-Original Message-
From: Aaron Galea [mailto:agale;nextgen.net.mt]
Sent: Friday, November 15, 2002 9:44 AM
To: Lucene Users List
Hi Rob
Here is how I think in my case I will do it but the code is not tested so it
might not work:
1. Create a filter class
class SearcherFilter extends Filter {
protected String Directory;
public SearcherFilter(String dir) {
Directory = dir;
}
public BitSet
Rob I was reading again the mail and I think I didn't reply exactly to your
question. In the code sent you can remove completely the StandardTokenizer()
or else modify the code from JGuru itself. However I can't really tell you
myself the effect this will have on your searches or indexing. Perhaps
I did this and it works now I need you guys, the experts :-) to let me know
if I am doing something terribly wrong:
Analyzer:
public TokenStream tokenStream(String field, final Reader reader) {
// do not tokenize any field
return new CharTokenizer(reader) {
On Friday 15 November 2002 14:40, Rob Outar wrote:
That is exactly what is happening, I was using the QueryParser class
because I wanted to do stuff like this:
field1 = value and field2 = value2 or field2 = value3
But from what you are telling me I cannot use the Query Parser class
because
Yes, I was going to post it.
I kept a copy, of course :) So I'll stick it in CVS somewhere soon.
Otis
--- Doug Cutting [EMAIL PROTECTED] wrote:
There was a class in the test directory that efficiently computed
this,
but I think Otis recently removed it. Perhaps it should be revived
and
Yes,
And I got the search working for Standalone but not for my website. As I
have no permissions to access the server. Life is critical here.
Uma
- Original Message -
From: Steven J. Owens [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday,
11 matches
Mail list logo