lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Strange behaviour with copyField
Date Wed, 03 Jun 2009 21:22:44 GMT

On Jun 3, 2009, at 5:09 AM, James Grant wrote:

> I've been hitting my head against a wall all morning trying to  
> figure this out and haven't managed to get anywhere and wondered if  
> anybody here can help.
>
> I have defined a field type
>
>   <fieldType name="text_au" class="solr.TextField"  
> positionIncrementGap="100">
>     <analyzer>
>       <tokenizer class="solr.LowerCaseTokenizerFactory" />
>     </analyzer>
>   </fieldType>
>
> I have two fields
>
> <field name="au" type="text_au" indexed="true" stored="true"  
> required="false" multiValued="true"/>
> <field name="author" type="text_au" indexed="true" stored="false"  
> multiValued="true"/>

I don't see the difference, as they are the same FieldType for each  
field, text_au.  Is this a typo or am I missing something?

>
>
> and a copyField line
>
> <copyField source="au" dest="author" />
>
> The idea is to allow searching for authors so a search for "author: 
> (Hobbs A.U.)" will match the au field value "Hobbs A. U." (notice  
> the space).

What would lower casing do for handling the space?

>
>
> However the query "au:(Hobbs A.U.)" matches and the the query  
> "author:(Hobbs A.U.)" does not.
>
> Any ideas?
>

How are you indexing?

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


Mime
View raw message