[Blacklight-development] solr schema; facetting vs searching
Erik Hatcher
erikhatcher at mac.com
Fri Feb 15 14:56:22 EST 2008
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
More information about the Blacklight-development
mailing list