You could use keepwords to filter out any other words besides your bag and then have a synonym filter that translates the remaining word(s) to a corresponding category/classification
On Sun, Mar 26, 2017 at 12:05 PM marotosg <marot...@gmail.com> wrote: > Hi, > > I have a very simple use case where I would need to classify a document > using a bag of words. Basically if a field within the document contains any > of the words on my bag then I use a new field to assign a category to the > document. > > Is this something achievable on Solr? > > I was thinking on using Lucene Document > classificationhttps://wiki.apache.org/solr/SolrClassification. > From what I understand I need to feed already the category on some > documents. New documents would be classified. > > Is there anything else I can't find? > > Thanks a lot. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Classify-document-using-bag-of-words-tp4326865.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- -- *John Blythe* Product Manager & Lead Developer 251.605.3071 | j...@curvolabs.com www.curvolabs.com 58 Adams Ave Evansville, IN 47713