lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik N S" <kart...@controlnet.co.in>
Subject Range Query Sombody HELP please
Date Mon, 31 May 2004 04:12:30 GMT
Hey Ype

Apologies please

Have a look at the Search Factor  hits in the O/p sample of my indexed file


================== Start Searching ==========================
Search Keyword : king~
Source path [ E:/po/aaaa ] : e:/indexer/b10181
Query: ['king~'] in Folder e:/indexer/b10181/b10181_indx_

Not a Found document(s) that matched query Field 'filename':
Not a Found document(s) that matched query Field 'bookid':
Not a Found document(s) that matched query Field 'creation':
Not a Found document(s) that matched query Field 'chapNme':
Not a Found document(s) that matched query Field 'itmName':

Found document(s) that matched : 'king~' no of hits :'67' in query Field
:'contents'

File Name                   : B10181_P703
File Path                     : E:\po\catalog\B10181\B10181_P703
Modified Date            : 1080036442000
Bookid                         : B10181
Chapter Name           :
Item Name                 :

File Name                    : B10181_P702
File Path                      : E:\po\catalog\B10181\B10181_P702
Modified Date             : 1080036442000
Bookid                          : B10181
Chapter Name            :
Item Name                  :

File Name                     : B10181_P512
File Path                       : E:\po\catalog\B10181\B10181_P512
Modified Date              : 1080036438000
Bookid                          : B10181
Chapter Name            :
Item Name                  :

File Name                    : B10181_P40
File Path                      : E:\po\catalog\B10181\B10181_P40
Modified Date             : 1080036444000
Bookid                          : B10181
Chapter Name            :
Item Name                  :

File Name                   : B10181_P355
File Path                     : E:\po\catalog\B10181\B10181_P355
Modified Date            : 1080036436000
Bookid                         : B10181
Chapter Name           :
Item Name                 :

File Name                   : B10181_P379
File Path                     : E:\po\catalog\B10181\B10181_P379
Modified Date            : 1080036436000
Bookid                         : B10181
Chapter Name           :
Item Name                 :


 .   .   .   .   .    .



328 Total milliseconds

================== End Searching ============


The o/p says a hit of 67 in total  [ I have sniped out most of them for view
case ] , the search word is present in field "Contents"
where the content part of html file is indexed.

If u see the Field  " File Name" it's Unique and is  indexed/ Viewed /  as
per Windows O/s Explore case.

My Question now is, If I want to Use Range Query  to  get search hits
between
fileName "B10181_P702"  and   "B10181_P355" only Instead of all the 67 hits
,

How Do I do it [Please state with clear Example or send me an attachement
for the same ,
  I overrided  the getRange() Query  method as per u'r last mail ,but still
not able to achive the Results  ].




with regards
Karthik









-----Original Message-----
From: Ype Kingma [mailto:ykingma@xs4all.nl]
Sent: Saturday, May 29, 2004 12:10 AM
To: lucene-user@jakarta.apache.org
Subject: Re: Range Query Sombody HELP please


On Friday 28 May 2004 10:54, Karthik N S wrote:
> Hey ype
>
> Thx for the advice but still I need to get the  exact situation working ,
>
> 1) I have a unique Field [ called filename ] which is indexed of type
Text.
>     It accepts the name of the HTML files as  the indexing parameter ,
>    Also there is another Field called "Contents"   which stores all the
> contents of that
>    indicated unique named html file.
>
> 2) The indexer complete indexes for about 5000 html files  sucessfully .
>
> 3) When I do a search for word ,it returns a hit of  400  on various html
> files
>
> Now in this situation if I want to limit the hits  between  First 200  to
> 400  html Page Names  only
> what exactly should I do to using getRange() method.

A range query will provide a range of indexed values, and
I thought you needed to add the record number as an indexed field
in each record.

However, you seem to use the 200 and 400 here as the order number
for each record in the result of the query on the Contents field.
Is that correct?
When so, in which order do you expect the results of your query?

Kind regards,
Ype


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message