[Blacklight-development] solr schema; facetting vs searching

Jonathan Rochkind rochkind at jhu.edu
Fri Feb 15 15:00:35 EST 2008


[ Can someone please change the list to reply-to list? ]

Perfect, thanks. Before I was asking if you could do a fielded search in 
the current blacklight. You said, yes, using lucene syntax, if you knew 
the name of the field you wanted to search. But it sounds like most of 
the fields you might want to search actually aren't stored in the index 
in a suitable way at present. But I also realize it would be a pretty 
easy change to the indexer to change this. Just trying to make sure I 
understand what's going on!

If Blacklight doesn't do sortable fields yet.... how does Blacklight 
sort search results?

Jonathan

Erik Hatcher wrote:
> Jonathan - yes, that is correct about facet fields and full-text 
> searchable fields.  Making one for each purpose indexed/tokenized 
> differently is how to do it.  Blacklight does not do this currently 
> though.  All field text, however, is tossed into a searchable "text" 
> field, so you can search on practically anything (readable) in the 
> MARC record (the to_s of it) in a full-text fashion.
>
> And yes, depending on how you want to sort, and whether you're dealing 
> with single-valued or multivalued facet fields, you may also need to 
> create a sortable field - a single value per document, in the 
> lexicographical format you want sorted by.   And no, Blacklight 
> doesn't do sortable fields yet either, that I'm aware of.
>
> Blacklight is pure and simple - MARC -> Ruby indexer -> Solr  <- RoR 
> search interface.   Not really any other bells and whistles lurking 
> underneath, other than the goodies extracted by the indexer.
>
>     Erik
>
>
> On Feb 14, 2008, at 4:32 PM, Jonathan Rochkind wrote:
>> It seems from reading the solr wiki that if you want a field to be used
>> for facetting, and ALSO individually searchable as a fielded search, you
>> should index it twice. Does the Blacklight indexing and interface code
>> currently do this, indexing some fields (say, "subject" stuff) as facets
>> AND as searchable text fields?  Looks like if you want to sort on it
>> too, you might want it in yet a third version.
>>
>> Can anyone point me to what part of the Blacklight code I might want to
>> look at to see this in practice, both for indexing and on the 
>> interface end?
>>
>> Jonathan
>> _______________________________________________
>> Blacklight-development mailing list
>> Blacklight-development at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/blacklight-development

-- 
Jonathan Rochkind
Digital Services Software Engineer
The Sheridan Libraries
Johns Hopkins University
410.516.8886 
rochkind (at) jhu.edu



More information about the Blacklight-development mailing list