lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik N S" <>
Subject Range Query Sombody HELP please
Date Wed, 02 Jun 2004 10:20:32 GMT

Hey Ype/Erick

Thx in advance in helping me for the Range of Queries.
Finally I was able to trace the wrong process within my code and closed

I still have 3 small Questions.

1)While creating the Range Query Is it possible for Lucene to do somthing

     +(button AND shirt) +filename:[b10181_p100 TO b10181_p200]

     [Do you think this will work]  It's not on returning hits , but it does
return hits with either one of them  "Shirt" or "button" Only.

2)When the indexer start indexing does it do according to alphabetic order
or is it some other way...

3)The Field Type  "Keyword"  is not accepting name of Files as it indexes
   [ Try indexing filenames and then do a search on them ,the hits will
return u 0 defnitly,  lucene1.3-final version ]

          < --------------------  Will return Hits

<--------------------  Will Not return Hits


with regards

On Monday 31 May 2004 13:47, Karthik N S wrote:
> Hey Ype...
> 1) I switched Off the Multi search Senerio.
> 2) Changing the Field type from Text to Keyword
>     will fail When I search for the the Field type  "filename"
>     so,I still maintained it to be Text

Just make sure the file name is indexed as you show it,
ie. the underscore should be in the indexed term.
The best way to do that is to index the filename as keyword.
Check the output of the analyzer, or use luke to see what is in the index
for the filename field.

> D:\JAVA\lucene\src\demo>java
> Search Keyword : b10181_p388
> Source path [ E:/po/aaaa ] : e:/indexer3/b10181
> Query: ['b10181_p388'] in Folder e:/indexer3/b10181/b10181_indx_
> Found document(s) that matched : 'b10181_p388' no of hits :'1' in query
> Field :'filename'
> File Name     : B10181_P388
> 3)On Search for range between 2 file names  B10181_P702   to  B01081_P355
>     still returns me  0 hits  [Included space before the 2nd '+' ]
> D:\JAVA\lucene\src\demo>java
> Search Keyword : +button +filename:[b10181_p702 TO b10181_p355]

Could you try this:

+button +filename:[b10181_p355 TO b10181_p702]

If this does not work, please narrow your problem down to a java test
of 10-20 lines, and post the code.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message