[Blacklight-development] Customizing Blacklight
Matt Mitchell
goodieboy at gmail.com
Wed Mar 4 21:07:48 EST 2009
Hi Vernon,
You're right on with that param_mappers thing. Good work. The schema defines
the fields/params in the request handlers. This is something that has
dramatically simplified the controllers/configs from the previous version of
BL. It also offers the advantages of having the fields defined in one place,
and any other client that uses your solr instance can expect the same
response as BL does. If we were to put all of the mapping in the UI layer,
other clients would have to mimic the params, which would be cruel. The
client can always override what's been defined in the solrconfig.xml file.
Matt
On Wed, Mar 4, 2009 at 8:28 PM, Vernon Chapman <chapman.lists at gmail.com>wrote:
> HI Bess,
>
> I decided to just try and wade through the code, and I think I have a
> pretty good idea of what I need to do.
>
> I am actually interested in customizing both the index and the interface.
> Customizing the index would basically consist of me changing
> the schema on my external solr server at least AFAIKT.
>
> Next I think I would need to extend the BlackLight module and add
> somtehting like:
>
> Blacklight.solr.param_mappers[:news] = :dismax
> Blacklight.solr.param_mappers[:events] = :dismax
> Blacklight.solr.param_mappers[:content] = :dismax
>
> where :news || :events || :content is the name of the handler that I have
> created
> in my solrconfig.xml and :dismax is the type of handler my handler is.
>
> That is as far as I have gotten am I on the right track?
>
> Thanks
>
> Vern
>
>
> Bess Sadler wrote:
>
>> Hi, Vern.
>>
>> Unfortunately we don't have a lot of documentation about customizing
>> Blacklight written yet, but we are working on that. Are you mainly
>> interested in customizing the index, or the interface, or both?
>>
>> If you're fairly happy with the default index fields, you could just map
>> your dublin core fields to them, and then customize the interface to fit
>> your look and feel.
>>
>> We have dedicated some folks to writing documentation (and maybe even
>> creating a screencast) about installation and customization, and if you give
>> us more details about what you're trying to do we might be able to shape the
>> documentation to better fit your needs.
>>
>> Thanks!
>> Bess
>>
>> On 4-Mar-09, at 5:06 PM, Vernon Chapman wrote:
>>
>> Is there some documentation on how to customize blacklight?
>>> I have a lot or Dublin Core(ish) metadata in a solr index and would like
>>> to use blacklight as a front end to it.
>>>
>>> Thanks in advance
>>>
>>> Vern
>>> _______________________________________________
>>> Blacklight-development mailing list
>>> Blacklight-development at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/blacklight-development
>>>
>>
>> _______________________________________________
>> Blacklight-development mailing list
>> Blacklight-development at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/blacklight-development
>>
>> _______________________________________________
> Blacklight-development mailing list
> Blacklight-development at rubyforge.org
> http://rubyforge.org/mailman/listinfo/blacklight-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/blacklight-development/attachments/20090304/1499c0da/attachment.html>
More information about the Blacklight-development
mailing list