Lucene Build Instructions

2002-02-08 Thread Ian Lea

Today I built lucene-1.2-rc3 from the source distribution
for the first time.  On the whole it was easy enough but
a couple of points:


BUILD.txt says Install JDK 1.3.  Might it be better to say
Install JDK 1.3 or later?. Lots of people are probably
running 1.4 already.

BUILD.txt makes no mention of javaCC.  You find out soon
enough when run ant, but would be better to have it
mentioned up front.  Also I couldn't get the .ant.properties
method mentioned in build.xml to work (probably finger
trouble) but copying javaCC.zip to the lucene-1.2-rc3-src/lib/
directory worked fine.



Also, by default the code as compiled from source and as
distributed in the binary download doesn't have line numbers
in stack trace dumps.  This may be deliberate in which case
fine, but the line numbers do help in tracking down
problems.



--
Ian.
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Web demo example: Errors from Tomcat startup

2002-02-08 Thread Andrew C. Oliver

Does tomcat 4 understand the 3.2.x header?  If so, lets just use the
3.2.x header.

On Fri, 2002-02-08 at 04:55, Ian Lea wrote:
  ...
  note that I make the assumption you're using 4.0.x or know how to adapt it.
  I'd guess if you take that top line and replace it with the top line from
  one of the tomcat 3.2.x example web.xml files, you'll probably hit paydirt.
  Probably tomcat can't read the newer format.  (but the file is practically
  blank anyhow).
 
 I think that is correct.  Tomcat 3.whatever understands 
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/dtd/web-app_2_2.dtd;
 
 without recourse to any external sites, and Tomcat 4.whatever understands
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 but Tomcat 3 doesn't.  So just edit web.xml and replace 3 with 2, twice.
 
 
 
 Perhaps that should be noted in the demo docs if it isn't already.
 
 
 
 --
 Ian.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
- fix java generics!


The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Web demo example: Errors from Tomcat startup

2002-02-08 Thread Ian Lea

Looks like it does.


--
Ian.

Andrew C. Oliver wrote:
 
 Does tomcat 4 understand the 3.2.x header?  If so, lets just use the
 3.2.x header.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: PhraseQuery: NullPointerException

2002-02-08 Thread Jonathan Franzone

*This message was transferred with a trial version of CommuniGate(tm) Pro*

Thanks, I may just step back to 1.2-rc2 until they've fixed this. I'm in a
bit of a crunch and don't feel like building lucene myself. Anyway, thanks
again for the response!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ian Lea
Sent: Friday, February 08, 2002 6:08 AM
To: Lucene Users List
Subject: Re: PhraseQuery: NullPointerException

1.2-rc3 seems to generate NPE if one or more of the words in
the search phrase are not present in the index.
Works as expected, no NPE, with 1.2-rc2.

If change method seek() in org.apache.lucene.index.SegmentTermPositions from

  final void seek(TermInfo ti) throws IOException {
super.seek(ti);
proxStream.seek(ti.proxPointer);
  }

to

  final void seek(TermInfo ti) throws IOException {
super.seek(ti);
if (ti != null) {
proxStream.seek(ti.proxPointer);
}
  }

the NPE goes away.  But I don't know what is going on here so
this may well not be the correct solution.




--
Ian.
[EMAIL PROTECTED]


Jonathan Franzone wrote:

 *This message was transferred with a trial version of CommuniGate(tm) Pro*

 I thought I saw a post that delt with this problem previously, but I
 couldn't find it in the archives. If it is a duplicate question I
apologize.

 I'm building a PhraseQuery and getting a random NullPointerException. It
 doesn't occur with all phrases, but is consistent with respect to the ones
 it does occur with. For example: visual basic,  information systems,
and
 project manager always succeed.  But other phrases like general
public,
 proven abilities, and sql server always fail. The stack trace is as
 follows:

 caught a class java.lang.NullPointerException with message: null
 java.lang.NullPointerException
 at org.apache.lucene.index.SegmentTermPositions.seek(Unknown
Source)
 at org.apache.lucene.index.SegmentTermDocs.seek(Unknown Source)
 at org.apache.lucene.index.SegmentsTermDocs.termDocs(Unknown
Source)
 at org.apache.lucene.index.SegmentsTermDocs.next(Unknown Source)
 at org.apache.lucene.search.PhrasePositions.next(Unknown Source)
 at org.apache.lucene.search.PhraseScorer.score(Unknown Source)
 at org.apache.lucene.search.IndexSearcher.search(Unknown Source)
 at org.apache.lucene.search.Hits.getMoreDocs(Unknown Source)
 at org.apache.lucene.search.Hits.init(Unknown Source)
 at org.apache.lucene.search.Searcher.search(Unknown Source)
 at org.apache.lucene.search.Searcher.search(Unknown Source)
 at

com.jobwarehouse.lucene.search.JWPassiveResumeSearch.search(JWPassiveResumeS
 earch.java:209)
 at

com.jobwarehouse.lucene.search.JWPassiveResumeSearch.main(JWPassiveResumeSea
 rch.java:280)

 Thanks!
 Jonathan Franzone

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Web demo example: Errors from Tomcat startup

2002-02-08 Thread Don Gilchrest - Sun Microsystems

Hi Andy,

Thanks for clarifying the demo instructions!

Now, what about the NPE that Ken Munro cited (included below)?  I'm
encountering this too:

dpg% cd $TOMCAT_HOME/webapps/
dpg% java -verbose org.apache.lucene.demo.IndexHTML -create -index 
/opt/lucene/index
...
[Loaded java.io.RandomAccessFile from /usr/local/j2sdk1_3_1_02/jre/lib/rt.jar]
 caught a class java.lang.NullPointerException
 with message: null

Could that be related to the NPE problem discussed in the PhraseQuery:
NullPointerException thread, for which Ian offered a possible
solution, included here:

 Date: Fri, 08 Feb 2002 12:08:25 +
 From: Ian Lea [EMAIL PROTECTED]
 Subject: Re: PhraseQuery: NullPointerException
 1.2-rc3 seems to generate NPE if one or more of the words in
 the search phrase are not present in the index.
 Works as expected, no NPE, with 1.2-rc2.
 
 If change method seek() in org.apache.lucene.index.SegmentTermPositions from
 
   final void seek(TermInfo ti) throws IOException {
 super.seek(ti);
 proxStream.seek(ti.proxPointer);
   }
 
 to
 
   final void seek(TermInfo ti) throws IOException {
 super.seek(ti);
 if (ti != null) {
   proxStream.seek(ti.proxPointer);
 }
   }
 
 the NPE goes away.  But I don't know what is going on here so
 this may well not be the correct solution.
 
 --
 Ian.
 [EMAIL PROTECTED]

Thanks again for your help with this.

-don

 Date: Wed, 06 Feb 2002 20:29:16 -0400
 From: Ken Munro [EMAIL PROTECTED]
 ...
 When I run java org.apache.lucene.demo.IndexHTML -create -index 
/opt/lucene/index,
 I get a null pointer exception (using either JDK 1.2 or 1.3). I am running Red 
Hat 7.1,
 with the Sun JDKs.
 
 I set up this script to run it:
 #!/bin/bash
 /usr/java/jdk1.3.1_02/bin/java -verbose -cp 
/usr/java/lucene-1.2-rc3-bin/lucene-1.2-rc3.jar:/usr/java/lucene-1.2-rc3-bin/luc
ene-demos-1.2-rc3.jar org.apache.lucene.demo.IndexHTML -create -index 
/opt/lucene/index
 
 And here is the (verbose--hope its not too much) output:
 ...
 [Loaded java.io.RandomAccessFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
  caught a class java.lang.NullPointerException
  with message: null
 [Loaded java.lang.Shutdown$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar]
 
 Thanks for all your help.
 
 Cheers.
 
 Ken Munro
 
 --
 Ken Munro
 Main Sail Productions
 http://www.mainsail.ca/
 [EMAIL PROTECTED]
 902.431.WWW3
 
 --


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




New to Lucene

2002-02-08 Thread Sean LeBlanc

Hi,

I was reading over the docs and reading up in general on Lucene. I want to
know if I can do the following:

1. Select one column from a subset of tables in a MS SQL Server database I
have, and index those...with some mechanism to keep the index in sync with
data as rows are added.
2. Run a query against one or many of the index columns.

Is this possible? I see that Lucene *can* index database data, but something
needs to be coded to handle this? Has anyone built any thin framework or
have code snippets available? Has anyone ever used Lucene to replace
Fulcrum?


TIA,
Sean


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: PhraseQuery: NullPointerException

2002-02-08 Thread Jonathan Franzone

*This message was transferred with a trial version of CommuniGate(tm) Pro*

Thank you thank you thank you thank you!!!

-Original Message-
From: Doug Cutting [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 5:12 PM
To: 'Lucene Users List'
Subject: RE: PhraseQuery: NullPointerException


*This message was transferred with a trial version of CommuniGate(tm) Pro*
This bug has been fixed.  The fix will be in tonight's nightly build.

Doug

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]