Retrieving a document from a Hits object

2006-06-12 Thread Michael Dodson
Hi, I'm trying to retrieve a document from a Hits object and I'm getting the following exception and stack trace. I have a Hits object named "hits" and I'm just trying to retrieve the first document using Document doc = hits.doc(0); I can retrieve all other kinds of information for the do

Re: ArrayIndexOutOfBoundsException w/ ImageSearcher

2006-05-03 Thread Michael Dodson
resurface later. Thanks. Mike On May 3, 2006, at 12:46 AM, Michael Dodson wrote: Hi, I'm getting an ArrayIndexOutOfBoundsException when I try to create an instance of IndexSearcher with an FSDirectory. for IndexSearcher searcher = new IndexSearcher(directory); I get the following stack

ArrayIndexOutOfBoundsException w/ ImageSearcher

2006-05-02 Thread Michael Dodson
Hi, I'm getting an ArrayIndexOutOfBoundsException when I try to create an instance of IndexSearcher with an FSDirectory. for IndexSearcher searcher = new IndexSearcher(directory); I get the following stack trace: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1

re: multiple indexes

2006-04-27 Thread Michael Dodson
I know it is possible to query against multiple indexes, but is it possible to create a composite query in which part of the query is against one index and part is against another (similar to querying against a default and a second field)? for example index1:query1 AND index2:query2 I tho

wildcards with SpanQuery

2006-04-18 Thread Michael Dodson
Is it possible to use wildcards with SpanNearQuery? For example, if the user enters "fast car" with a slop of 1 things like "fast cars" "faster cars" "fast brown cars" etc would be found? Thanks, Mike - To unsubscribe, e-m

nested phrase queries

2006-04-06 Thread Michael Dodson
Can phrase queries be nested the same way boolean queries can be nested? I want a user query to be translated into a boolean query (say, x AND (y OR z)), and I want those terms to be within a certain distance of each other (approximately within the same sentence, so the slop would be about

re: restart interrupted index

2006-03-16 Thread Michael Dodson
I'm relatively new to Lucene and I've been trying to index a large number of html files. If my operation is interrupted the index appears to be corrupted. I can no longer open it for searching with IndexSearcher (and no amount of toying with Luke's options seems to help if I try to browse

Re: Rebuilding after modifying JSP's

2006-02-19 Thread Michael Dodson
isn't a lucene isolated problem. I'm getting the same error no matter what I try to build. I suppose I should be asking the ant mailing list... Thanks for the help. Mike On Feb 19, 2006, at 11:47 PM, Erik Hatcher wrote: On Feb 19, 2006, at 11:22 AM, Michael Dodson wrote: Ant 1.6

Re: Rebuilding after modifying JSP's

2006-02-19 Thread Michael Dodson
Ant 1.6.5 No, I didn't make any modifications to the build file. Mike On Feb 19, 2006, at 1:09 AM, Erik Hatcher wrote: What version of Ant? Did you modify build.xml? Erik On Feb 18, 2006, at 6:32 PM, Michael Dodson wrote: I've been trying to use ant to rebuild lu

Rebuilding after modifying JSP's

2006-02-18 Thread Michael Dodson
I've been trying to use ant to rebuild lucene after toying with the source. I am getting an error message I don't understand (though I am admittedly new to ant). The error is below. Any help is greatly appreciated. Thank you. Buildfile: build.xml BUILD FAILED /Users/michaeldodson/lucen

indexing URL's from parsed HTML

2006-01-28 Thread Michael Dodson
I'm new to Lucene and I'm trying to index an HTML file parsed with NekoHTML. With text between HTML tags, its easy enough to have an overloaded getText() method which either recursively indexes all text, or which accepts the name of a tag (like "title") and only finds text between tags.