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 Uma Maheswar <um...@globalleafs.com> on 2002/11/13 08:14:01 UTC

Let me get started

Hello,
I have downloaded the required files of Lucene. I have no permissions to set the classpath in the server. My site is running on Apache Tomcat. I have been given one root directory and one web-inf directory. e.g

/somename
  |
  |
  /web-inf
    |
    |
    /classes
   /lib

Now where should I place these jar files? In the /lib dir?  I am having MS SQL Server, Will this help me get my work easy?. I need to search for .jsp files and .html files. Is this possible? Is there any website running with Lucene? Please guide me.

Thanks
Uma
http://www.javagalaxy.com

Re: Let me get started

Posted by Clemens Marschner <cm...@lanlab.de>.
>      People are not being helpful because they do not see any
> indication, in your posts, that you are trying to help yourself.  Your
> comments don't seem to indicate any attempts to try different routes.
> You don't mention any specific problems you're encountering.  you
> don't demonstrate any familiarity with the lucene API (which suggests
> that you haven't really worked through the tutorial). 

+1

Clemens




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


Re: Let me get started

Posted by "Steven J. Owens" <pu...@darksleep.com>.
On Sat, Nov 16, 2002 at 07:34:28AM +0530, Uma Maheswar wrote:
> And I got the search working for Standalone but not for my
> website. As I have no permissions to access the server. Life is
> critical here.

     People are not being helpful because they do not see any
indication, in your posts, that you are trying to help yourself.  Your
comments don't seem to indicate any attempts to try different routes.
You don't mention any specific problems you're encountering.  you
don't demonstrate any familiarity with the lucene API (which suggests
that you haven't really worked through the tutorial). 

     As usual, the internet is more than willing to *help* you do
something yourself, but completely uninterested in doing it *for* you.
If you demonstrate that you're willing and able to do the work, people
will be more responsive.

     Some specific questions:

     What do you mean when you say you got the search working for
"standalone?"

     Have you ever written a java servlet application?  

     Is Javagalaxy your hosting service, or is it your website?
 
     You may be using the wrong tool for the job.  Lucene is a search
engine API.  Lucene enables you to build the tool you need.  If you
don't have the right skills or the time to build the tool, then you
need to look for other solutions.

     I'm taking a look at javagalaxy.com right now.  You have
something funky going on.  The various JSP links are sending responses
with mime-type "Binary Executable" (application/octet-stream).  They
should be sending mime-type text/html.  Looks like your servlet engine
is misconfigured.  Contact me in private email and I'll try to help
you work through that.

Steven J. Owens
puff@darksleep.com

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at http://darksleep.com


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


Re: Let me get started

Posted by Uma Maheswar <um...@globalleafs.com>.
Yes,
And I got the search working for Standalone but not for my website. As I
have no permissions to access the server. Life is critical here.

Uma

----- Original Message -----
From: "Steven J. Owens" <pu...@darksleep.com>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Cc: <pu...@darksleep.com>
Sent: Saturday, November 16, 2002 7:27 AM
Subject: Re: Let me get started


> On Wed, Nov 13, 2002 at 10:37:39PM +0530, Uma Maheswar wrote:
> > Can you help me get started? I have downloaded lucene-1.2.jar and
> > lucene-demos-1.2.jar and I have placed them in web-inf/lib directory of
my
> > web server (http://www.javagalaxy.com). I do not know what to do next.
>
>      Did you read the article I pointed you to?  That says what to do
> next.
>
> Steven J. Owens
> puff@darksleep.com
>
> "I'm going to make broad, sweeping generalizations and strong,
>  declarative statements, because otherwise I'll be here all night and
>  this document will be four times longer and much less fun to read.
>  Take it all with a grain of salt." - Me at http://darksleep.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: Let me get started

Posted by "Steven J. Owens" <pu...@darksleep.com>.
On Wed, Nov 13, 2002 at 10:37:39PM +0530, Uma Maheswar wrote:
> Can you help me get started? I have downloaded lucene-1.2.jar and
> lucene-demos-1.2.jar and I have placed them in web-inf/lib directory of my
> web server (http://www.javagalaxy.com). I do not know what to do next.

     Did you read the article I pointed you to?  That says what to do
next.
 
Steven J. Owens
puff@darksleep.com

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at http://darksleep.com


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


Re: Let me get started

Posted by Uma Maheswar <um...@globalleafs.com>.
Thanks Steve,
Can you help me get started? I have downloaded lucene-1.2.jar and
lucene-demos-1.2.jar and I have placed them in web-inf/lib directory of my
web server (http://www.javagalaxy.com). I do not know what to do next.

I read the documents that came with .zip file. But they are all for
localhost:8080, I need lucene for my website. Could any one guide me with
steps to successfully make lucene work in my website?

Thanks
Uma


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


Re: Let me get started

Posted by "Steven J. Owens" <pu...@darksleep.com>.
On Wed, Nov 13, 2002 at 05:14:25PM +0530, Uma Maheswar wrote:
> Thanks for the messages. Yes I wanted to index .jsp files also. Is
> it possible?

     It's possible, but you'll need to write code to select and parse
the jsp files.  There may be code in the sandbox area at
jakarta.apache.org/lucene for doing this, though I don't see it.

> I thought we need a database to store some values and then retrive
> them back. Dont we need database for it?

     Nope, lucene stores search data in its own files.  You can easily
use lucene to build a search engine for data that's stored in a
database, but you don't need a database.

Steven J. Owens
puff@darksleep.com

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at http://darksleep.com


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


Indexing files

Posted by Uma Maheswar <um...@globalleafs.com>.
Hello,

This is what I see in the docs for indexing the files,

" Once you've gotten this far you're probably itching to go. Let's build an
index! Assuming you've set your classpath correctly, just type "java
org.apache.lucene.demo.IndexFiles {full-path-to-lucene}/src". This will
produce a subdirectory called "index" which will contain an index of all of
the Lucene sourcecode. "

How do I type this command (java org.apache.lucene.demo.IndexFiles
{full-path-to-lucene}/src) if the files are in the server? I have copied
lucene-1.2.jar and lucene-demos-1.2.jar to web-inf/lib directory. Please
advice me what is the next step.

Thanks
Uma
http://www.javagalaxy.com



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


RE: Multiple field searches using AND and OR's

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Here is a snippet using MultiFieldQueryParser.  Using QueryParser
should be similar.

Otis

            Searcher searcher =
                new
IndexSearcher(System.getProperty("ppcactivity.index.dir"));

                Query query = MultiFieldQueryParser.parse(queryString,
                    new String[] {"title", "description"}, analyzer);
                System.out.println("Searching for: " +
query.toString("title"));

                Hits hits = searcher.search(query);


--- Rob Outar <ro...@ideorlando.org> wrote:
> Thanks Otis, one other question the constructor's are kind of odd for
> the
> QueryParser class:
> 
> Constructor Summary
> QueryParser(CharStream stream)
> 
> QueryParser(QueryParserTokenManager tm)
> 
> QueryParser(String f, Analyzer a)
>           Constructs a query parser.
> 
> I guess I can create one using:
> 
> QueryParser(String f, Analyzer a)
> 
> But when I call query(String query) will it form the Query object
> disreguarding the argument I passed in the constructor?
> 
> Let me know.
> 
> Thanks,
> 
> Rob Outar
> OneSAF A&I -- SAIC
> Software\Data Engineer
> 321-235-7660
> outarr@saic.com <ma...@saic.com>
> 
> 
> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
> Sent: Wednesday, November 13, 2002 10:28 AM
> To: Lucene Users List
> Subject: RE: Multiple field searches using AND and OR's
> 
> 
> The QueryParser will handle input such as field1:value1 AND
> field2:value2 OR field3:value3, and will construct the appropriate
> term
> and boolean queries.
> 
> See Query Syntax page.
> 
> Otis
> 
> 
> --- Rob Outar <ro...@ideorlando.org> wrote:
> > Looked at that already the format is this:
> >
> > public static Query parse(String query,
> >                           String[] fields,
> >                           Analyzer analyzer)
> >                    throws ParseExceptionParses a query which
> searches
> > on the
> > fields specified.
> >
> > If x fields are specified, this effectively constructs:
> >
> >
> >  (field1:query) (field2:query) (field3:query)...(fieldx:query)
> >
> > my query "value" will not be the same.  This lets u query multiple
> > field
> > with the same query, my query string will be different
> >
> > 	f_name = rob and l_name = outar or address = some value
> >
> > stuff like that.
> >
> > Plus there is no way of specifying OR and AND's.
> >
> >
> > Thanks,
> >
> > Rob O
> > -----Original Message-----
> > From: Kelvin Tan [mailto:kelvin-lists@relevanz.com]
> > Sent: Wednesday, November 13, 2002 9:42 AM
> > To: Lucene Users List
> > Subject: Re: Multiple field searches using AND and OR's
> >
> >
> > Rob,
> >
> > I believe MultiFieldQueryParser will do the job for you...
> >
> > Regards,
> > Kelvin
> >
> >
> > On Wed, 13 Nov 2002 08:58:36 -0500, Rob Outar said:
> > >Hello all,
> > >
> > >    I am wondering how I would do multiple field searches of the
> > form:
> > >
> > >    field1 = value and field2 = value2 or field2 = value3
> > >
> > >I am thinking that each one of the above would be a term query but
> > >how would I string them together with AND's and OR's?
> > >
> > >Any help would be appreciated.
> > >
> > >Thanks,
> > >
> > >Rob
> > >
> > >PS I found this in the FAQ, but I was wondering if there was any
> > >other way to do it:
> > >
> > >My documents have multiple fields, do I have to replicate a query
> > >for each of them ?
> > >Not necessarily. A simple solution is to index the documents using
> a
> > >general field that contains a concatenation of the content of all
> > >the searchable fields ('author', 'title', 'body' etc). This way, a
> > >simple query will search in entire document content.
> > >
> > >The disadvantage of this method is that you cannot boost certain
> > >fields relative to others. Note also the matches in longer
> documents
> > >results in lower ranking.
> > >
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:   <mailto:lucene-user-
> > >unsubscribe@jakarta.apache.org> For additional commands, e-mail:
> > ><mailto:lucene-user-
> > >help@jakarta.apache.org>
> >
> >
> >
> >
> > --
> > 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>
> >
> 
> 
> __________________________________________________
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
> 
> --
> 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>
> 


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

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


RE: Multiple field searches using AND and OR's

Posted by Rob Outar <ro...@ideorlando.org>.
Thanks Otis, one other question the constructor's are kind of odd for the
QueryParser class:

Constructor Summary
QueryParser(CharStream stream)

QueryParser(QueryParserTokenManager tm)

QueryParser(String f, Analyzer a)
          Constructs a query parser.

I guess I can create one using:

QueryParser(String f, Analyzer a)

But when I call query(String query) will it form the Query object
disreguarding the argument I passed in the constructor?

Let me know.

Thanks,

Rob Outar
OneSAF A&I -- SAIC
Software\Data Engineer
321-235-7660
outarr@saic.com <ma...@saic.com>


-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
Sent: Wednesday, November 13, 2002 10:28 AM
To: Lucene Users List
Subject: RE: Multiple field searches using AND and OR's


The QueryParser will handle input such as field1:value1 AND
field2:value2 OR field3:value3, and will construct the appropriate term
and boolean queries.

See Query Syntax page.

Otis


--- Rob Outar <ro...@ideorlando.org> wrote:
> Looked at that already the format is this:
>
> public static Query parse(String query,
>                           String[] fields,
>                           Analyzer analyzer)
>                    throws ParseExceptionParses a query which searches
> on the
> fields specified.
>
> If x fields are specified, this effectively constructs:
>
>
>  (field1:query) (field2:query) (field3:query)...(fieldx:query)
>
> my query "value" will not be the same.  This lets u query multiple
> field
> with the same query, my query string will be different
>
> 	f_name = rob and l_name = outar or address = some value
>
> stuff like that.
>
> Plus there is no way of specifying OR and AND's.
>
>
> Thanks,
>
> Rob O
> -----Original Message-----
> From: Kelvin Tan [mailto:kelvin-lists@relevanz.com]
> Sent: Wednesday, November 13, 2002 9:42 AM
> To: Lucene Users List
> Subject: Re: Multiple field searches using AND and OR's
>
>
> Rob,
>
> I believe MultiFieldQueryParser will do the job for you...
>
> Regards,
> Kelvin
>
>
> On Wed, 13 Nov 2002 08:58:36 -0500, Rob Outar said:
> >Hello all,
> >
> >    I am wondering how I would do multiple field searches of the
> form:
> >
> >    field1 = value and field2 = value2 or field2 = value3
> >
> >I am thinking that each one of the above would be a term query but
> >how would I string them together with AND's and OR's?
> >
> >Any help would be appreciated.
> >
> >Thanks,
> >
> >Rob
> >
> >PS I found this in the FAQ, but I was wondering if there was any
> >other way to do it:
> >
> >My documents have multiple fields, do I have to replicate a query
> >for each of them ?
> >Not necessarily. A simple solution is to index the documents using a
> >general field that contains a concatenation of the content of all
> >the searchable fields ('author', 'title', 'body' etc). This way, a
> >simple query will search in entire document content.
> >
> >The disadvantage of this method is that you cannot boost certain
> >fields relative to others. Note also the matches in longer documents
> >results in lower ranking.
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:lucene-user-
> >unsubscribe@jakarta.apache.org> For additional commands, e-mail:
> ><mailto:lucene-user-
> >help@jakarta.apache.org>
>
>
>
>
> --
> 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>
>


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
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: Multiple field searches using AND and OR's

Posted by Otis Gospodnetic <ot...@yahoo.com>.
The QueryParser will handle input such as field1:value1 AND
field2:value2 OR field3:value3, and will construct the appropriate term
and boolean queries.

See Query Syntax page.

Otis


--- Rob Outar <ro...@ideorlando.org> wrote:
> Looked at that already the format is this:
> 
> public static Query parse(String query,
>                           String[] fields,
>                           Analyzer analyzer)
>                    throws ParseExceptionParses a query which searches
> on the
> fields specified.
> 
> If x fields are specified, this effectively constructs:
> 
> 
>  (field1:query) (field2:query) (field3:query)...(fieldx:query)
> 
> my query "value" will not be the same.  This lets u query multiple
> field
> with the same query, my query string will be different
> 
> 	f_name = rob and l_name = outar or address = some value
> 
> stuff like that.
> 
> Plus there is no way of specifying OR and AND's.
> 
> 
> Thanks,
> 
> Rob O
> -----Original Message-----
> From: Kelvin Tan [mailto:kelvin-lists@relevanz.com]
> Sent: Wednesday, November 13, 2002 9:42 AM
> To: Lucene Users List
> Subject: Re: Multiple field searches using AND and OR's
> 
> 
> Rob,
> 
> I believe MultiFieldQueryParser will do the job for you...
> 
> Regards,
> Kelvin
> 
> 
> On Wed, 13 Nov 2002 08:58:36 -0500, Rob Outar said:
> >Hello all,
> >
> >    I am wondering how I would do multiple field searches of the
> form:
> >
> >    field1 = value and field2 = value2 or field2 = value3
> >
> >I am thinking that each one of the above would be a term query but
> >how would I string them together with AND's and OR's?
> >
> >Any help would be appreciated.
> >
> >Thanks,
> >
> >Rob
> >
> >PS I found this in the FAQ, but I was wondering if there was any
> >other way to do it:
> >
> >My documents have multiple fields, do I have to replicate a query
> >for each of them ?
> >Not necessarily. A simple solution is to index the documents using a
> >general field that contains a concatenation of the content of all
> >the searchable fields ('author', 'title', 'body' etc). This way, a
> >simple query will search in entire document content.
> >
> >The disadvantage of this method is that you cannot boost certain
> >fields relative to others. Note also the matches in longer documents
> >results in lower ranking.
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:lucene-user-
> >unsubscribe@jakarta.apache.org> For additional commands, e-mail:
> ><mailto:lucene-user-
> >help@jakarta.apache.org>
> 
> 
> 
> 
> --
> 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>
> 


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

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


RE: Multiple field searches using AND and OR's

Posted by Rob Outar <ro...@ideorlando.org>.
Looked at that already the format is this:

public static Query parse(String query,
                          String[] fields,
                          Analyzer analyzer)
                   throws ParseExceptionParses a query which searches on the
fields specified.

If x fields are specified, this effectively constructs:


 (field1:query) (field2:query) (field3:query)...(fieldx:query)

my query "value" will not be the same.  This lets u query multiple field
with the same query, my query string will be different

	f_name = rob and l_name = outar or address = some value

stuff like that.

Plus there is no way of specifying OR and AND's.


Thanks,

Rob O
-----Original Message-----
From: Kelvin Tan [mailto:kelvin-lists@relevanz.com]
Sent: Wednesday, November 13, 2002 9:42 AM
To: Lucene Users List
Subject: Re: Multiple field searches using AND and OR's


Rob,

I believe MultiFieldQueryParser will do the job for you...

Regards,
Kelvin


On Wed, 13 Nov 2002 08:58:36 -0500, Rob Outar said:
>Hello all,
>
>    I am wondering how I would do multiple field searches of the
form:
>
>    field1 = value and field2 = value2 or field2 = value3
>
>I am thinking that each one of the above would be a term query but
>how would I string them together with AND's and OR's?
>
>Any help would be appreciated.
>
>Thanks,
>
>Rob
>
>PS I found this in the FAQ, but I was wondering if there was any
>other way to do it:
>
>My documents have multiple fields, do I have to replicate a query
>for each of them ?
>Not necessarily. A simple solution is to index the documents using a
>general field that contains a concatenation of the content of all
>the searchable fields ('author', 'title', 'body' etc). This way, a
>simple query will search in entire document content.
>
>The disadvantage of this method is that you cannot boost certain
>fields relative to others. Note also the matches in longer documents
>results in lower ranking.
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:lucene-user-
>unsubscribe@jakarta.apache.org> For additional commands, e-mail:
><mailto:lucene-user-
>help@jakarta.apache.org>




--
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: Multiple field searches using AND and OR's

Posted by Kelvin Tan <ke...@relevanz.com>.
Rob,

I believe MultiFieldQueryParser will do the job for you...

Regards,
Kelvin


On Wed, 13 Nov 2002 08:58:36 -0500, Rob Outar said:
>Hello all,
>
>    I am wondering how I would do multiple field searches of the 
form:
>
>    field1 = value and field2 = value2 or field2 = value3
>
>I am thinking that each one of the above would be a term query but
>how would I string them together with AND's and OR's?
>
>Any help would be appreciated.
>
>Thanks,
>
>Rob
>
>PS I found this in the FAQ, but I was wondering if there was any
>other way to do it:
>
>My documents have multiple fields, do I have to replicate a query
>for each of them ?
>Not necessarily. A simple solution is to index the documents using a
>general field that contains a concatenation of the content of all
>the searchable fields ('author', 'title', 'body' etc). This way, a
>simple query will search in entire document content.
>
>The disadvantage of this method is that you cannot boost certain
>fields relative to others. Note also the matches in longer documents
>results in lower ranking.
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:lucene-user-
>unsubscribe@jakarta.apache.org> For additional commands, e-mail:
><mailto:lucene-user-
>help@jakarta.apache.org>




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


Multiple field searches using AND and OR's

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

	I am wondering how I would do multiple field searches of the form:

	field1 = value and field2 = value2 or field2 = value3

I am thinking that each one of the above would be a term query but how would
I string them together with AND's and OR's?

Any help would be appreciated.

Thanks,

Rob

PS I found this in the FAQ, but I was wondering if there was any other way
to do it:

My documents have multiple fields, do I have to replicate a query for each
of them ?
Not necessarily. A simple solution is to index the documents using a general
field that contains a concatenation of the content of all the searchable
fields ('author', 'title', 'body' etc). This way, a simple query will search
in entire document content.

The disadvantage of this method is that you cannot boost certain fields
relative to others. Note also the matches in longer documents results in
lower ranking.




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


Re: Let me get started

Posted by Uma Maheswar <um...@globalleafs.com>.
Clemens,
Thanks for the messages. Yes I wanted to index .jsp files also. Is it
possible? I thought we need a database to store some values and then retrive
them back. Dont we need database for it?

Thanks
Uma

----- Original Message -----
From: "Clemens Marschner" <cm...@lanlab.de>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 4:07 PM
Subject: Re: Let me get started


> >Now where should I place these jar files? In the /lib dir?
>
> Yes.
>
> >I am having MS SQL Server, Will this help me get my work easy?.
> <
>
> MS SQL Server and Lucene are two completely different things. It's like
> talking about apples and pears.
>
> >I need to search for .jsp files and .html files. Is this possible?
>
> You want to index .jsp files???? Or do you mean the data that comes from
> your database?
> Regarding HTML files: yes you can index anything you want with Lucene, but
> you have to do some manual steps. See
>
http://lucene.sourceforge.net/cgi-bin/faq/faqmanager.cgi?file=chapter.indexi
> ng&toc=faq#q11 for a pointer.
>
> >Is there any website running with Lucene? Please guide me.
> <
>
> See http://jakarta.apache.org/lucene/docs/powered.html
> which by the way is a page you should have read before posting ;-)
>
>
> --Clemens
>
>
>
> --
> 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: Let me get started

Posted by Uma Maheswar <um...@globalleafs.com>.
Hello,
I have copied the jar files to the /lib directory of my web server. Can you
tell me what should I do next? or in short can you guide me in points?

Thanks
Uma


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


Re: Let me get started

Posted by Clemens Marschner <cm...@lanlab.de>.
>Now where should I place these jar files? In the /lib dir?

Yes.

>I am having MS SQL Server, Will this help me get my work easy?.
<

MS SQL Server and Lucene are two completely different things. It's like
talking about apples and pears.

>I need to search for .jsp files and .html files. Is this possible?

You want to index .jsp files???? Or do you mean the data that comes from
your database?
Regarding HTML files: yes you can index anything you want with Lucene, but
you have to do some manual steps. See
http://lucene.sourceforge.net/cgi-bin/faq/faqmanager.cgi?file=chapter.indexi
ng&toc=faq#q11 for a pointer.

>Is there any website running with Lucene? Please guide me.
<

See http://jakarta.apache.org/lucene/docs/powered.html
which by the way is a page you should have read before posting ;-)


--Clemens



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