Re: How can I index JSP files?

2003-07-27 Thread Leo Galambos
If I understand the Enigma code well, they say, that you must write a 
crawler ;-)

-g-

"To index the content of JSPs that a user would see using a Web browser,
you would need to write an application that acts as a Web client, in
order to mimic the Web browser behaviour. Once you have such an
application, you should be able to point it to the desired JSP, retrieve
the contents that the JSP generates, parse it, and feed it to Lucene."






I am a newbie to lucene and I would like to enable searching capability
to my website which is written entirely with JSP and servlets.  Does
anyone have any experience parsing JSP files in order to create in index
for/by Lucene?   I would greatly appreciate any help with the matter.
THanx


Russ

 



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


How can I index JSP files?

2003-07-27 Thread Pitre, Russell
Reffering to this:  http://www.jguru.com/faq/view.jsp?EID=1074516

 

 

"To index the content of JSPs that a user would see using a Web browser,
you would need to write an application that acts as a Web client, in
order to mimic the Web browser behaviour. Once you have such an
application, you should be able to point it to the desired JSP, retrieve
the contents that the JSP generates, parse it, and feed it to Lucene."

 

 

 

I am a newbie to lucene and I would like to enable searching capability
to my website which is written entirely with JSP and servlets.  Does
anyone have any experience parsing JSP files in order to create in index
for/by Lucene?   I would greatly appreciate any help with the matter.
THanx

 

Russ



Re: NOT, exclude, prohibit, !, -

2003-07-27 Thread Otis Gospodnetic
Hello,

I believe those are all the same.  I am writing this from an Internet
cafe in Sofia, Bulgaria, so I don't have access to QueryParser.jj, but
that's where you should look to see how NOT, ! and - are defined.
I believe they all exclude from the result, all documents that contain
the term or phrase that follows.

Otis


--- Jon Crowell <[EMAIL PROTECTED]> wrote:
> Hi.  I've been reading the Query Syntax page at
> http://jakarta.apache.org/lucene/docs/queryparsersyntax.html and I'm
> not
> sure I understand the difference between the prohibit operator (-)
> and the
> exclude operator (!).
> 
> It seems that NOT is the exclude operator and the short form is !.  I
> quote:
> 
> 
>  The NOT operator excludes documents that contain the
>  term after NOT. This is equivalent to a difference
>  using sets. The symbol ! can be used in place of the
>  word NOT.
> 
>  To search for documents that contain "jakarta apache"
>  but not "jakarta lucene" use the query: 
> 
> "jakarta apache" NOT "jakarta lucene"
> 
> 
> The minus sign (-) is described in its own section as the prohibit
> operator.
> I quote:
> 
> 
>  The "-" or prohibit operator excludes documents that
>  contain the term after the "-" symbol.
> 
>  To search for documents that contain "jakarta apache"
>  but not "jakarta lucene" use the query: 
>  
>  "jakarta apache" -"jakarta lucene"
> 
> 
> My question is: what is the difference between these two operators? 
> If
> there is no difference, then why are there two operators?
> 
> Thanks,
> 
> Jon
> 
> 
>
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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