adding clustering params to query.

15 views
Skip to first unread message

hitesh

unread,
Jun 8, 2010, 11:06:35 PM6/8/10
to rsolr
Hello, I'm trying to override carrot.title and carrot.snippet fields
in the query and here's my code

fields_to_show = 'id,post_id,message
query = 'id:' + uid.to_s
result = solr.request '/clustering' , :q=>query , :rows=>
$CLUSTER_LIMIT, :fl=>fields_to_show

how can I add those fields.
If I add :carrot.title => 'c_title", :carrot.snippet =>
'c_snippet',
I get "title" method not defined.

what's the correct way to have custom fields?

Thanks,

Hitesh Sachan

unread,
Jun 8, 2010, 11:18:40 PM6/8/10
to rsolr
Never mind.. I figure it out using the thread

" does rsolr-ext support facet.method parameter? "

Please ignore.

-Hitesh

Reply all
Reply to author
Forward
0 new messages