Java Mailing List Archive

http://www.java2.5341.com/

Home » nutch-user.lucene »

Not getting search results when caps letters are used for a word to
be found in url field

pavankumar

2008-08-01


Author LoginPost Reply

hi,
  I am not getting search results though my site is getting
crawled/indexed fine if I restrict my results to have a particular word
(having caps letters) in url field.

For example, to get all urls with a word test_ABC in the url field, I am
using the following code
query.addRequiredTerm("test_ABC", "url");
which is not giving any results.

But when I convert my word to lower case and search, I am getting the
required results.
query.addRequiredTerm("test_ABC".toLowerCase(), "url");

Please let me know why search results are not coming if I search for a
particular word having caps letters in the url field.



--
Sent from the Nutch - User mailing list archive at Nabble.com.

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.