Luke,
Look at the javadocs for java.io.ByteArrayInputStream - it wraps a
byte array and makes it accessible as an InputStream. Also see
java.util.zip.ZipFile. You should be able to read and parse all
contents of the zip file in memory.
IOException. As I found out the hard way :)
On Fri, 18 Feb 2005 15:03:29 -0600, Chris Lamprecht
[EMAIL PROTECTED] wrote:
I recently dealt with the issue of re-using a Searcher with an index
that changes often. I wrote a class that allows my searching classes
to check out a lucene Searcher, perform
Wouldn't this leave open file handles? I had a problem where there
were lots of open file handles for deleted index files, because the
old searchers were not being closed.
On Fri, 18 Feb 2005 13:41:37 -0800 (PST), Otis Gospodnetic
[EMAIL PROTECTED] wrote:
Or you could just open a new
One thing about subversion branches (from Key Concepts Behind
Branches in chapter 4 of the subversion book):
2. Subversion has no internal concept of a branchonly copies. When
you copy a directory, the resulting directory is only a branch
because you attach that meaning to it. You may think of
Hi Karl,
From _Lucene in Action_, section 2.2, when you add the same field with
different values, Internally, Lucene appends all the words together
and index them in a single Field ..., allowing you to use any of the
given words when searching.
See also
Without looking at the source, my guess is that StandardAnalyzer (and
StandardTokenizer) is the culprit. The StandardAnalyzer grammar (in
StandardTokenizer.jj) is probably defined so x/y parses into two
tokens, x and y. s is a default stopword (see
StopAnalyzer.ENGLISH_STOP_WORDS), so it gets
I just ran into a similar issue. When you close an IndexSearcher, it
doesn't necessarily close the underlying IndexReader. It depends
which constructor you used to create the IndexSearcher. See the
constructors javadocs or source for the details.
In my case, we were updating and optimizing the
As they say, nothing lasts forever ;)
I like the idea. If a project like this gets going, I think I'd be
interested in helping.
The Google mini looks very well done (they have two demos on the web
page). For $5000, it's probably a very good solution for many
businesses. If the demos are
Hi Karthik,
If you are talking about SingleThreadModel (i.e. your servlet
implements javax.servlet.SingleThreadModel), this does not guarantee
that two different instances of your servlet won't be run at the same
time. It only guarantees that each instance of your servlet will only
be run by one
Also if you can't wait, see page 2 of
http://www.onjava.com/pub/a/onjava/2003/01/15/lucene.html
or the LIA e-book ;)
On Fri, 21 Jan 2005 09:27:42 -0500, Kevin L. Cobb
[EMAIL PROTECTED] wrote:
OK, OK ... I'll buy the book. I guess its about time since I am deeply
and forever in love with
What about a shutdown hook?
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() { /* whatever */ }
});
see also http://www.onjava.com/pub/a/onjava/2003/03/26/shutdownhook.html
On Tue, 11 Jan 2005 13:21:42 -0800, Doug Cutting [EMAIL PROTECTED] wrote:
Joseph Ottinger
Very cool, thanks for posting this!
Google's feature doesn't seem to do a search on every keystroke
necessarily. Instead, it waits until you haven't typed a character
for a short period (I'm guessing about 100 or 150 milliseconds). So
if you type fast, it doesn't hit the server until you
A useful resource for increasing the number of file handles on various
operating systems is the Volano Report:
http://www.volano.com/report/
I had requested help on an issue we have been facing with the Too many
open files Exception garbling the search indexes and crashing the
search on the
John,
It actually should be pretty easy to use just the parts of Lucene you
want (the analyzers, etc) without using the rest. See the example of
the PorterStemmer from this article:
http://www.onjava.com/pub/a/onjava/2003/01/15/lucene.html?page=2
You could feed a Reader to the tokenStream()
MySQL does offer a basic fulltext search (with MyISAM tables), but it
doesn't really approach the functionality of Lucene, such as pluggable
tokenizers, stemming, etc. I think MS SQL server has fulltext search
as well, but I have no idea if it's any good.
See
I'd like to implement a search across several types of entities,
let's say, classes, professors, and departments. I want the user to
be able to enter a simple, single query and not have to specify what
they're looking for. Then I want the search results to be something
like this:
Search results
crunching to figure
out
which way to go.
Hope this helps
Nader Henein
Chris Lamprecht wrote:
I'd like to implement a search across several types of entities,
let's say, classes, professors, and departments. I want the user
to
be able to enter a simple, single
17 matches
Mail list logo