Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Urgent

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


kbharwada at eq-technologic

Oct 29, 2002, 2:03 AM

Post #1 of 10 (529 views)
Permalink
Urgent

Hi

I would like to implement a search with date range. Can anyone explain how
do i go about implementing this. I have enabled search on our intranet site
and want to make changes to results.jsp so as to include the date option as
well.

Kajal


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


Suryanarayana.Murthy at med

Oct 29, 2002, 2:17 AM

Post #2 of 10 (509 views)
Permalink
RE: Urgent [In reply to]

Hi Kajal,
Could you please tell me how did you implement search on your intranet? I
would like to know the steps.

Thanks & Regards,
Murthy

-----Original Message-----
From: kbharwada [at] eq-technologic [mailto:kbharwada [at] eq-technologic]
Sent: Tuesday, October 29, 2002 10:04 AM
To: lucene-user [at] jakarta
Subject: Urgent

Hi

I would like to implement a search with date range. Can anyone explain how
do i go about implementing this. I have enabled search on our intranet site
and want to make changes to results.jsp so as to include the date option as
well.

Kajal


--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail:
<mailto:lucene-user-help [at] jakarta>

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


kelvin-lists at relevanz

Oct 29, 2002, 2:21 AM

Post #3 of 10 (511 views)
Permalink
Re: Urgent [In reply to]

Kajal,

Index the date fields using Field.Keyword, and use a DateFilter to limit
the results you need.

Regards,
Kelvin


On Tue, 29 Oct 2002 14:33:43 +0530, kbharwada [at] eq-technologic wrote:
>Hi
>
>I would like to implement a search with date range. Can anyone
>explain how
>do i go about implementing this. I have enabled search on our
>intranet site
>and want to make changes to results.jsp so as to include the date
>option as
>well.
>
>Kajal
>
>
>--
>To unsubscribe, e-mail: <mailto:lucene-user-
>unsubscribe [at] jakarta>
>For additional commands, e-mail: <mailto:lucene-user-
>help [at] jakarta>





--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


kbharwada at eq-technologic

Oct 29, 2002, 2:39 AM

Post #4 of 10 (522 views)
Permalink
Re: Urgent [In reply to]

Could u please elaborate on using Field.Keyword. An elaborate explanation
will be really helpful. I need to implement the date functionality in the
next half an hours time and submit.

Thanks,
Kajal


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


terry at net-frame

Oct 29, 2002, 6:55 AM

Post #5 of 10 (520 views)
Permalink
Re: Urgent [In reply to]

If your date fields are in the form of YYYYMMDD, you can probably simply use
a range query, such as pub_date:[20021001 - 20021009] to select all
documents with pub_dates between October 1, 2002 and October 9,2002.

Regards,

Terry

----- Original Message -----
From: <kbharwada [at] eq-technologic>
To: "Lucene Users List" <lucene-user [at] jakarta>
Sent: Tuesday, October 29, 2002 4:39 AM
Subject: Re: Urgent


>
> Could u please elaborate on using Field.Keyword. An elaborate explanation
> will be really helpful. I need to implement the date functionality in the
> next half an hours time and submit.
>
> Thanks,
> Kajal
>
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe [at] jakarta>
> For additional commands, e-mail:
<mailto:lucene-user-help [at] jakarta>
>


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


Suryanarayana.Murthy at med

Oct 29, 2002, 8:19 AM

Post #6 of 10 (512 views)
Permalink
RE: Urgent [In reply to]

Hi Kelvin,
Could you please tell me the steps how to implement search engine for the
intranet site with Lucene. I have gone through the documentation at the
site.
This is a starting problem for me.

Thanks & Regards,
Murthy

-----Original Message-----
From: Kelvin Tan [mailto:kelvin-lists [at] relevanz]
Sent: Tuesday, October 29, 2002 10:22 AM
To: Lucene Users List
Subject: Re: Urgent

Kajal,

Index the date fields using Field.Keyword, and use a DateFilter to limit
the results you need.

Regards,
Kelvin


On Tue, 29 Oct 2002 14:33:43 +0530, kbharwada [at] eq-technologic wrote:
>Hi
>
>I would like to implement a search with date range. Can anyone
>explain how
>do i go about implementing this. I have enabled search on our
>intranet site
>and want to make changes to results.jsp so as to include the date
>option as
>well.
>
>Kajal
>
>
>--
>To unsubscribe, e-mail: <mailto:lucene-user-
>unsubscribe [at] jakarta>
>For additional commands, e-mail: <mailto:lucene-user-
>help [at] jakarta>





--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail:
<mailto:lucene-user-help [at] jakarta>

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


ccox at cincom

Oct 29, 2002, 1:53 PM

Post #7 of 10 (516 views)
Permalink
RE: Urgent [In reply to]

have you looked at the demo?

http://jakarta.apache.org/lucene/docs/demo3.html

Charlie

> -----Original Message-----
> From: Murthy, Suryanarayana (MED, TCS)
> [mailto:Suryanarayana.Murthy [at] med]
> Sent: Tuesday, October 29, 2002 10:19 AM
> To: 'Lucene Users List'
> Subject: RE: Urgent
>
>
> Hi Kelvin,
> Could you please tell me the steps how to implement search
> engine for the
> intranet site with Lucene. I have gone through the
> documentation at the
> site.
> This is a starting problem for me.
>
> Thanks & Regards,
> Murthy
>
> -----Original Message-----
> From: Kelvin Tan [mailto:kelvin-lists [at] relevanz]
> Sent: Tuesday, October 29, 2002 10:22 AM
> To: Lucene Users List
> Subject: Re: Urgent
>
> Kajal,
>
> Index the date fields using Field.Keyword, and use a
> DateFilter to limit
> the results you need.
>
> Regards,
> Kelvin
>
>
> On Tue, 29 Oct 2002 14:33:43 +0530,
> kbharwada [at] eq-technologic wrote:
> >Hi
> >
> >I would like to implement a search with date range. Can anyone
> >explain how
> >do i go about implementing this. I have enabled search on our
> >intranet site
> >and want to make changes to results.jsp so as to include the date
> >option as
> >well.
> >
> >Kajal
> >
> >
> >--
> >To unsubscribe, e-mail: <mailto:lucene-user-
> >unsubscribe [at] jakarta>
> >For additional commands, e-mail: <mailto:lucene-user-
> >help [at] jakarta>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:lucene-user-unsubscribe [at] jakarta>
> For additional commands, e-mail:
> <mailto:lucene-user-help [at] jakarta>
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail:
<mailto:lucene-user-help [at] jakarta>

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe [at] jakarta>
For additional commands, e-mail: <mailto:lucene-user-help [at] jakarta>


gsingers at apache

Nov 17, 2007, 4:58 AM

Post #8 of 10 (507 views)
Permalink
Re: urgent [In reply to]

http://wiki.apache.org/lucene-java/LuceneFAQ#head-3558e5121806fb4fce80fc022d889484a9248b71

Have a look at what the StandardTokenizer is doing (inside the
StandardAnalyzer).


On Nov 17, 2007, at 7:46 AM, Shakti_Sareen wrote:

> Hi
>
>
>
> I am facing problem in searching the word containing forward slash
> (/).
>
> My index file contains more then one documents.
>
> On searching for the word "U/S" in the claims field I am getting hits.
>
> But the word "U/S" is actually not there in the document.
>
>
>
> Below is the code I am using for searching.
>
> Analyzer analyzer = null;
>
> analyzer = new StandardAnalyzer();
>
> IndexSearcher searcher = new
> IndexSearcher(fIndexFolder.getAbsolutePath());
>
> QueryParser parser = new
> QueryParser("Claim",analyzer);
>
> Query query = parser.parse("U/S");
>
>
> Hits hits = searcher.search(query);
>
> LOGGER.info("Hits of word U/S in claims
> :::::::: " + hits.length());
>
> for (int i = 0; i < hits.length(); i++)
> {
>
> docum = hits.doc(i);
>
> LOGGER.info("file
> NUMBER
>>>>> " + docum.get("PatentNumber"));
>
> }
>
>
>
> Regards
> SHAKTI SAREEN
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use
> of the intended recipient/s and may contain material that is
> CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance
> by others or copying or distribution or forwarding of any or all of
> the contents in this message is STRICTLY PROHIBITED. If you are not
> the intended recipient, please contact the sender by email and
> delete all copies; your cooperation in this regard is appreciated.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


john.wang at gmail

Nov 17, 2007, 7:38 AM

Post #9 of 10 (507 views)
Permalink
Re: urgent [In reply to]

I think "U/S" is tokenized to 'U' and 'S'.

Sicne the query parser is using the same analyzer/tokenizer, the
search for "U/S" is actually the same as the phrase query: "U S".
Which explains why it is a hit but not in the index.

-John

On Nov 17, 2007 4:58 AM, Grant Ingersoll <gsingers [at] apache> wrote:
> http://wiki.apache.org/lucene-java/LuceneFAQ#head-3558e5121806fb4fce80fc022d889484a9248b71
>
> Have a look at what the StandardTokenizer is doing (inside the
> StandardAnalyzer).
>
>
>
> On Nov 17, 2007, at 7:46 AM, Shakti_Sareen wrote:
>
> > Hi
> >
> >
> >
> > I am facing problem in searching the word containing forward slash
> > (/).
> >
> > My index file contains more then one documents.
> >
> > On searching for the word "U/S" in the claims field I am getting hits.
> >
> > But the word "U/S" is actually not there in the document.
> >
> >
> >
> > Below is the code I am using for searching.
> >
> > Analyzer analyzer = null;
> >
> > analyzer = new StandardAnalyzer();
> >
> > IndexSearcher searcher = new
> > IndexSearcher(fIndexFolder.getAbsolutePath());
> >
> > QueryParser parser = new
> > QueryParser("Claim",analyzer);
> >
> > Query query = parser.parse("U/S");
> >
> >
> > Hits hits = searcher.search(query);
> >
> > LOGGER.info("Hits of word U/S in claims
> > :::::::: " + hits.length());
> >
> > for (int i = 0; i < hits.length(); i++)
> > {
> >
> > docum = hits.doc(i);
> >
> > LOGGER.info("file
> > NUMBER
> >>>>> " + docum.get("PatentNumber"));
> >
> > }
> >
> >
> >
> > Regards
> > SHAKTI SAREEN
> >
> >
> > DISCLAIMER:
> > This email (including any attachments) is intended for the sole use
> > of the intended recipient/s and may contain material that is
> > CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance
> > by others or copying or distribution or forwarding of any or all of
> > the contents in this message is STRICTLY PROHIBITED. If you are not
> > the intended recipient, please contact the sender by email and
> > delete all copies; your cooperation in this regard is appreciated.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> > For additional commands, e-mail: java-user-help [at] lucene
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


mrrohitsaini at gmail

Nov 18, 2007, 8:52 PM

Post #10 of 10 (489 views)
Permalink
Re: urgent [In reply to]

Hi,
I think u may need to use escape function to escape the words which does not
come in searching....

Rohit


On 11/17/07, Shakti_Sareen <Shakti_Sareen [at] satyam> wrote:
>
> Hi
>
>
>
> I am facing problem in searching the word containing forward slash (/).
>
> My index file contains more then one documents.
>
> On searching for the word "U/S" in the claims field I am getting hits.
>
> But the word "U/S" is actually not there in the document.
>
>
>
> Below is the code I am using for searching.
>
> Analyzer analyzer = null;
>
> analyzer = new StandardAnalyzer();
>
> IndexSearcher searcher = new
> IndexSearcher(fIndexFolder.getAbsolutePath());
>
> QueryParser parser = new
> QueryParser("Claim",analyzer);
>
> Query query = parser.parse("U/S");
>
>
> Hits hits = searcher.search(query);
>
> LOGGER.info("Hits of word U/S in claims
> :::::::: " + hits.length());
>
> for (int i = 0; i < hits.length(); i++)
> {
>
> docum = hits.doc(i);
>
> LOGGER.info("file NUMBER
> >>>> " + docum.get("PatentNumber"));
>
> }
>
>
>
> Regards
> SHAKTI SAREEN
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>


--
VANDE - MATRAM

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.