Hi Bruno,

Just to confirm -- are you seeing the clusters array in the result at all
(<arr name="clusters">)? To get reasonable clusters, you should request at
least 30-50 documents (rows), but even with smaller values, you should see
an empty clusters array.

Staszek

On Sun, May 20, 2012 at 9:20 PM, Bruno Mannina <bmann...@free.fr> wrote:

> Le 20/05/2012 11:43, Stanislaw Osinski a écrit :
>
>  Hi Bruno,
>>
>> Here's the wiki documentation for Solr's clustering component:
>>
>> http://wiki.apache.org/solr/**ClusteringComponent<http://wiki.apache.org/solr/ClusteringComponent>
>>
>> For configuration examples, take a look at the Configuration section:
>> http://wiki.apache.org/solr/**ClusteringComponent#**Configuration<http://wiki.apache.org/solr/ClusteringComponent#Configuration>
>> .
>>
>> If you hit any problems, let me know.
>>
>> Staszek
>>
>> On Sun, May 20, 2012 at 11:38 AM, Bruno Mannina<bmann...@free.fr>  wrote:
>>
>>  Dear all,
>>>
>>> I use Solr 3.6.0 and I indexed some documents (around 12000).
>>> Each documents contains a Abstract-en field (and some other fields).
>>>
>>> Is it possible to use Carrot2 to create cluster (classes) with the
>>> Abstract-en field?
>>>
>>> What must I configure in the schema.xml ? or in other files?
>>>
>>> Sorry for my newbie question, but I found only documentation for
>>> Workbench
>>> tool.
>>>
>>> Bruno
>>>
>>>  Thx for this link but I have a problem to configure my solrconfig.xml
> in the section:
> (note I run java -Dsolr.clustering.enabled=**true........)
>
> I have a field named abstract-en, and I would like to use only this field.
>
> I would like to know if my requestHandler is good?
> I have a doubt with the content of  : carrot.title, carrot.url
>
> and also the latest field
> <str name="df">abstract-en</str>
> <str name="defType">edismax</str>
> <str name="qf">
>          abstract-en^1.0
> </str>
> <str name="q.alt">*:*</str>
> <str name="rows">10</str>
> <str name="fl">*,score</str>
>
> because the result when I do a request is exactly like a search request
> (without more information)
>
>
> My entire requestHandler is:
>
> <requestHandler name="/clustering" startup="lazy"
> enable="${solr.clustering.**enabled:false}" class="solr.SearchHandler">
> <lst name="defaults">
> <bool name="clustering">true</bool>
> <str name="clustering.engine">**default</str>
> <bool name="clustering.results">**true</bool>
> <!-- The title field -->
> <str name="carrot.title">name</str>
> <str name="carrot.url">id</str>
> <!-- The field to cluster on -->
> <str name="carrot.snippet">**abstract-en</str>
> <!-- produce summaries -->
> <bool name="carrot.produceSummary">**true</bool>
> <!-- the maximum number of labels per cluster -->
> <!--<int name="carrot.numDescriptions">**5</int>-->
> <!-- produce sub clusters -->
> <bool name="carrot.**outputSubClusters">false</**bool>
> <str name="df">abstract-en</str>
> <str name="defType">edismax</str>
> <str name="qf">
>          abstract-en^1.0
> </str>
> <str name="q.alt">*:*</str>
> <str name="rows">10</str>
> <str name="fl">*,score</str>
> </lst>
> <arr name="last-components">
> <str>clustering</str>
> </arr>
> </requestHandler>
>
>

Reply via email to