Hello,

I got the problem solved. The issue was I was setting the wrong field name
in the qf parameter of my request handler.

Thanks.

Regards,
Indika

On 27 June 2010 08:52, Indika Tantrigoda <indik...@gmail.com> wrote:

> Hello,
>
>
> Applying the NGramFilterFactory for analyzer type="query" didnt solve the
> issue.
> From the examples I've seen it is only necesssary to have the
> NGramFilterFactory at index time right ?
>
> Regards,
> Indika
>
> On 27 June 2010 01:14, Indika Tantrigoda <indik...@gmail.com> wrote:
>
>> Hi all,
>>
>> I've been working with Solr for while and the search components work as
>> expected.
>> Recently I've had the requirement to do searching on partial words and I
>> setup the NGramFilterFactory.
>>
>> My schema.xml is as follows :
>>
>> <fieldType name="nGram" class="solr.TextField"
>>             positionIncrementGap="100" stored="false" multiValued="true">
>>             <analyzer type="index">
>>                 <tokenizer class="solr.StandardTokenizerFactory"/>
>>                 <filter class="solr.LowerCaseFilterFactory"/>
>>                 <filter class="solr.NGramFilterFactory" minGramSize="3"
>>                           maxGramSize="15"/>
>>             </analyzer>
>>             <analyzer type="query">
>>                 <tokenizer class="solr.StandardTokenizerFactory"/>
>>         <filter class="solr.LowerCaseFilterFactory"/>
>>         </analyzer>
>>     </fieldType>
>>
>> <field name="title" type="text" indexed="true" stored="true"
>> multiValued="false"/>
>> <field name="nGram_text" type="nGram" indexed="true" stored="true"
>> multiValued="true"/>
>> <copyField source="title" dest="nGram_text"/>
>>
>> Furthermore I am using the dismax query hanlder and have set a boost on
>> the nGram_text field.
>>
>> If I do a *:* on the Solr administration interface it shows the nGram_text
>> field to be populated.
>> However if I search for plan (Assume I indexed the word Plane) no results
>> are shown.
>> Is there any other configurations that needs to be done ?
>>
>> Thanks in advance,
>>
>> Regards,
>> Indika
>>
>
>

Reply via email to