On Mon, Mar 25, 2013 at 1:08 AM, Steve Rowe <[email protected]> wrote:
> Robert,
>
> It's used to serialize similarity factories.  See getNamedPropertyValues() 
> just below.
>
> There are tests for similarity factory classes of the form 
> "solr.<SimpleFactoryClassName>", e.g. TestSweetSpotSimilarityFactory, which 
> uses solr/core/src/test-files/solr/collection1/conf/schema-sweetspot.xml, 
> which declares:
>
>   <similarity class="solr.SchemaSimilarityFactory"/>
>
> When you say "that's not even the package where our similarity factories go", 
> to which package are you referring?
>
> See IndexSchema.readSimilarity() for how it can work.
>

Right, i remember setting this part up which is why i took a look:

      final Object obj = loader.newInstance(((Element)
node).getAttribute("class"), Object.class, "search.similarities.");

this piece means that solr.xxxx -> org.apache.solr.search.similarities.xxxx

But this 'normalize' is wrongt: like map org.apache.lucene.xxx, or
other packages of org.apache.solr.xxx to solr.xxx.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to