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 Nita Deshpande <ni...@sdsc.edu> on 2002/11/20 20:13:21 UTC

Problem building Lucene

Hi:

I downloaded the lucene source and have been trying to build using
ant. I am getting the following error message:
----------------------------------------------------------------------
-------------------------
Buildfile: build.xml

init:

javacc_check:

compile:
   [javacc] java was not found in
/usr/local/apps/java/bin/sparc/native_threads/java

BUILD FAILED

/users/science/user/lucene/lucene-1.2-src/build.xml:96: java failed
with return code 1
----------------------------------------------------------------------
-------------------------

The JavaCC version is 2.1. Platform is Sun sparc solaris. JAVA_HOME
env variable has been set to /usr/local/apps/java.
Any help will be most appreciated.

Thanks
ND

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


Re: A little date help

Posted by Ype Kingma <yk...@xs4all.nl>.
Rob,

On Wednesday 20 November 2002 21:20, you wrote:
> Hello all,
>
> I am indexing the date using the java.io.file.lastModified() method
>
> doc.add(new Field(MODIFIED_DT,
>             DateField.timeToString(f.lastModified()), true, true, true));
>
> I am trying to search on this field, but I am having a hard time formatting
> the date correctly.  I am not sure what date format lastModified() uses so
> trying to come up with a query in milliseconds for the above date field is
> difficult.
>
> Has anyone run into this problem?  Is there an easier way to do this?

In case you can do with less precision, you can store/index the date as a 
string of 8 digits yyyymmdd. There are some date formatting functions in 
java.text iirc. The format also nicely allows range queries.

Regards,
Ype

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


A little date help

Posted by Rob Outar <ro...@ideorlando.org>.
Hello all,

I am indexing the date using the java.io.file.lastModified() method

doc.add(new Field(MODIFIED_DT,
            DateField.timeToString(f.lastModified()), true, true, true));

I am trying to search on this field, but I am having a hard time formatting
the date correctly.  I am not sure what date format lastModified() uses so
trying to come up with a query in milliseconds for the above date field is
difficult.

Has anyone run into this problem?  Is there an easier way to do this?

Let me know,

Rob


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