You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Stone, Timothy" <ts...@cityofhbg.com> on 2002/09/02 22:33:49 UTC

Newbie quizzes further...

Thanks Otis. While NFS, dist, sdist and rsync are not available, ssh, sftp
and scp are (my previous post --see "Lucene newbie needs advice"-- with
ASCII art failed to mention that it's a W2K environment, there's some
intentional hiding of this fact, I would much rather be in a *NIX
environment). ssh, et.al is provided by Cygwin, so I might venture the task
of setting up the aforementioned utils too, but much more important things
ahead.

*** New question ***

I have noted that Lucene fails to interpret numerous HTML entities,
specifically entities in the 82xx range, i.e. &#8212; (en-dash) and many
others. Now this may not be a Lucene issue, I'm looking at the code as I
post, but I'm curious to its origins and why they don't seem to be parsed
properly in the index.

Tim





> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
> Sent: Friday, August 30, 2002 10:55
> To: Lucene Users List
> Subject: Re: Lucene newbie needs advice
> 
> 
> Sharing a read-only index is not a problem, as long as both machines
> running Tomcat can access it.  That is, you would have to 
> NFS-mount the
> disk/partition with the index.
> 
> Or you can use something like dist or sdist with rsync to 
> send a single
> index from the machine where you create and update your index, to all
> the Tomcat machines that need to read it when people perform searches.
> 
> Otis
> 
> 
> --- "Stone, Timothy" <ts...@cityofhbg.com> wrote:
> > Lucene users,
> > 
> > Lucene looks like the answer to my site-only searches, a robust API
> > and
> > active user community. I have a rather static informational site,
> > html and
> > some pdf, coming online; hits may be heavy in the 
> beginning, but drop
> > dramaticly following opening. 
> > 
> > The general practice of searching the web is known, but search
> > engines and
> > the technology/terminology of searching are foreign to me and I'm
> > looking
> > for a rapid, drop in solution, with little customizing at this stage
> > (until
> > I can come up to speed). I'll be running an Apache Tomcat 
> environment
> > (really only to enable Luncene).
> > 
> > How much harm is there in deploying the Lucene demo/example, with
> > some "look
> > and feel" changes and handling for possible redirects to alternate
> > web
> > search engines?
> > 
> > Also, can multiple Tomcat servers running the Lucene demo share a
> > single
> > index? Are there threading issues to be concerned about?
> > 
> > My hardware is rather robust at this point. I have two IBM Web
> > servers with
> > dual 2Ghz XEON processors, 2Gb RAM and dual Gb NICs. The future has
> > these
> > servers in roles as load balancing proxies in front of a switch, or
> > switches, managing dedicated web hardware. This is what I'm working
> > with;
> > capital expenditures are spent.
> > 
> > My configuration plan looks something like this:
> > 
> > 
> > Box 1
> > 
> > +--+........>+--+
> > | Apache1    |  |
> > |__|         |_Tomcat1   +-+
> > | Apache2    |  |        +-+ shared lucene index
> > |  |         | Tomcat2
> > +--+........>+--+
> >  
> > 
> > Box 2
> >  
> > +--+........>+--+
> > | Apache3    |  |
> > |__|         |_Tomcat3   +-+
> > | Apache4    |  |        +-+ shared lucene index
> > |  |         | Tomcat4
> > +--+ .......>+--+
> > 
> > 
> > 
> > Thanks,
> > Tim 
> > 
> >    ***************************************************
> >   Timothy Stone      | Sun Certified Java Programmer *
> >   Web Master         | tstone at cityofhbg dot com   *
> > * City of Harrisburg | 717.255.7297
> > * Pennsylvania USA   | 717.903.9162
> > ***************************************************
> >   "This Satan's drink [coffee] is so delicious,
> >    we shall cheat Satan and baptize it."
> >    Pope Clement VIII 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Newbie quizzes further...

Posted by Joshua O'Madadhain <jm...@ics.uci.edu>.
On Mon, 2 Sep 2002, Stone, Timothy wrote:

> I have noted that Lucene fails to interpret numerous HTML entities,
> specifically entities in the 82xx range, i.e. &#8212; (en-dash) and
> many others. Now this may not be a Lucene issue, I'm looking at the
> code as I post, but I'm curious to its origins and why they don't seem
> to be parsed properly in the index.

As I see it, there are two answers to this question.

(1) What gets parsed and indexed is your choice; there are various
different Analyzers that are included with the Lucene package, which have
different effects.  You could conceivably construct an Analyzer that would
parse such entities as you describe.

(2) Historically punctuation has not been parsed by search engines, for
the simple reason that it doesn't tend to add much to search precision and
it complicates the indexing process.  (On the other hand, if you're
talking about accents and non-English letters, I understand that some
people have written analyzers that cover these things; check out the
contrib section on the Lucene website.)

Joshua O'Madadhain

 jmadden@ics.uci.edu...Obscurium Per Obscurius...www.ics.uci.edu/~jmadden
  Joshua O'Madadhain: Information Scientist, Musician, Philosopher-At-Tall
 It's that moment of dawning comprehension that I live for--Bill Watterson
My opinions are too rational and insightful to be those of any organization.




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>