lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matrix_psj <>
Subject Keepwords Schema
Date Thu, 01 Oct 2009 14:07:26 GMT

Hi guys,

Although i've been looking at Solr on and off for a few months, I'm still
getting to grips with the schema and filter/tokenizers.

I'm having trouble using the "solr.KeepWordFilterFactory" functionality and
there doesnt appear to be previous discussions here regarding it. I
basically have a short text field (~100 chars on average) that i wish to be
returned as a facet, but only some or parts of the field based on keepwords
stored in a file.

An example:
My schema is about web files. Part of the syntax is a text field of authors
that have worked on each file, e.g.
   <authors>alex, brian, carl carlington, dave alpha, eddie, dave

When I perform a search and get 20 web files back, I would like a facet of
the individual authors, but only if there name appears in a
public_authors.txt file.

So if the public_authors.txt file contained:
Carl Carlington,
Dave Alpha,

The facet returned would be:
Carl Carlington
Dave Alpha

Not sure if that makes sense? If it does, could someone explain to me the
schema fieldtype declarations that would bring back this sort of results.

Thanks for any help

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message