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 Anon15 <se...@hotmail.it> on 2014/05/07 11:28:08 UTC

Problem when i'm trying to search something

Hi everyone,

I'm using an updated version of Solr module for Drupal 7.
I've indexed my entire site, and i have about 8000 documents in index.

I have a problem when I'm trying to research something.

For example: 
	-> "incre" => 0 results
	-> "incred" => n results for the word 'incredible'
	-> "incredi" => 0 results
	-> "incredib" => n results for the word 'incredible'

This is just an example.

How is it possible? Someone can help me with an detailed explanation?

Thanks !




--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-when-i-m-trying-to-search-something-tp4135045.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Problem when i'm trying to search something

Posted by Shawn Heisey <el...@elyograg.org>.
On 5/13/2014 3:12 AM, Anon15 wrote:
> Thanks for replying !
> 
> This is my Schema.xml. 

The XML is gone.  I would imagine that this is happening because you're
posting on the Nabble forum, not directly to the mailing list.  Nabble
is a two-way mirror of the list, the actual mailing list is the true
distribution point.  I would guess that Nabble either removes or parses
anything that looks like HTML before it sends to the mailing list, and
if you try to parse XML as HTML, it would likely simply disappear.

You may wish to use a paste website for including data instead.  The
Apache foundation has their own paste site at http://apaste.info for us
to use.

I did visit the Nabble version of your post, and I can see the
schema.xml there.  Your fieldType named "text" has the following line in it:

<filter class="solr.SnowballPorterFilterFactory" language="French"
protected="protwords.txt"/>

SnowballPorterFilterFactory is a factory class for a stemming filter.

In your schema, the fields named label, content, teaser, and path_alias
are using this fieldType.  I would imagine that the matches you are
seeing are coming from one or more of those fields.

Thanks,
Shawn


Re: Problem when i'm trying to search something

Posted by Anon15 <se...@hotmail.it>.
Thanks for replying !

This is my Schema.xml. 








--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-when-i-m-trying-to-search-something-tp4135045p4135427.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Problem when i'm trying to search something

Posted by Doug Turnbull <dt...@opensourceconnections.com>.
Hey Anon15

It sounds like your encountering a heuristic known as stemming. Stemming
takes various of words and reduces them to a base form. For example

jumped
jumping
jumper

might all get reduced to "jump"

So now when a user searches for "jump" they can retrieve all docs with the
various forms of the word "jump".

There's various algorithms that Solr/Lucene use for stemming. They all
represent hueristics that work well for most cases. Some stemmers are very
aggressive in how they reduce to a common form, others are less aggressive.
You can read more about Solr/Lucene's stemmers here:

https://wiki.apache.org/solr/LanguageAnalysis

All of these are configured in your Solr schema in the corresponding field
type's analysis chain. Do you know what field type is being used for this
field you are searching? Would you be interested in sharing, and we could
give you even more info?

Cheers,
-Doug
-------
Search Consultant
OpenSource Connections
http://opensourceconnections.com



On Wed, May 7, 2014 at 5:28 AM, Anon15 <se...@hotmail.it> wrote:

> Hi everyone,
>
> I'm using an updated version of Solr module for Drupal 7.
> I've indexed my entire site, and i have about 8000 documents in index.
>
> I have a problem when I'm trying to research something.
>
> For example:
>         -> "incre" => 0 results
>         -> "incred" => n results for the word 'incredible'
>         -> "incredi" => 0 results
>         -> "incredib" => n results for the word 'incredible'
>
> This is just an example.
>
> How is it possible? Someone can help me with an detailed explanation?
>
> Thanks !
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Problem-when-i-m-trying-to-search-something-tp4135045.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Doug Turnbull
Search & Big Data Architect
OpenSource Connections <http://o19s.com>