You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matthew Twomey <mt...@beakstar.com> on 2011/07/21 02:13:22 UTC

Solr not returning results for some key words

Greetings,

I'm having trouble getting Solr to return results for key words that I 
know for sure are in the index. As a test, I've indexed a PDF of a book 
on Java. I'm trying to search the index for 
"UnsupportedOperationException" but I get no results. I can "see" it in 
the index though:

#####
[root@myhost apache-solr-1.4.1]# strings 
example/solr/data/index/_0.fdt|grep UnsupportedOperationException
UnsupportedOperationException if the iterator returned by this collec-
throw new UnsupportedOperationException();
UnsupportedOperationException Object does not support method    CHAPTER 
9 EXCEPTIONS
UnsupportedOperationException, 87,
[root@myhost apache-solr-1.4.1]#
#####

On the other hand, if I search the index for the word "support" (which 
is also contained in the grep above), I get a hit on this document. 
Furthermore, if I search on "support" and include highlighted snippets, 
I can see the word "UnsupportedOperationException" right in there in the 
highlight results!

#####
of an object has
been detected where it is prohibited
UnsupportedOperationException Object does not <em>support</em>
#####

So why do I get no hits when I search for it?

This happens with many different key words. Any thoughts on how I can 
trouble shoot this or ideas on why it's not working properly?

Thanks,

-Matt

Re: Solr not returning results for some key words

Posted by Matthew Twomey <mt...@beakstar.com>.
Ok, apparently I'm not the first to have fallen prey to maxFieldLength 
gotcha:

http://lucene.472066.n3.nabble.com/Solr-ignoring-maxFieldLength-td473263.html

All fixed now.

-Matt

On 07/20/2011 07:13 PM, Matthew Twomey wrote:
> Greetings,
>
> I'm having trouble getting Solr to return results for key words that I 
> know for sure are in the index. As a test, I've indexed a PDF of a 
> book on Java. I'm trying to search the index for 
> "UnsupportedOperationException" but I get no results. I can "see" it 
> in the index though:
>
> #####
> [root@myhost apache-solr-1.4.1]# strings 
> example/solr/data/index/_0.fdt|grep UnsupportedOperationException
> UnsupportedOperationException if the iterator returned by this collec-
> throw new UnsupportedOperationException();
> UnsupportedOperationException Object does not support method    
> CHAPTER 9 EXCEPTIONS
> UnsupportedOperationException, 87,
> [root@myhost apache-solr-1.4.1]#
> #####
>
> On the other hand, if I search the index for the word "support" (which 
> is also contained in the grep above), I get a hit on this document. 
> Furthermore, if I search on "support" and include highlighted 
> snippets, I can see the word "UnsupportedOperationException" right in 
> there in the highlight results!
>
> #####
> of an object has
> been detected where it is prohibited
> UnsupportedOperationException Object does not <em>support</em>
> #####
>
> So why do I get no hits when I search for it?
>
> This happens with many different key words. Any thoughts on how I can 
> trouble shoot this or ideas on why it's not working properly?
>
> Thanks,
>
> -Matt