Sorry it actually works. Thanks a lot. On 26 March 2017 at 21:45, Sergio García Maroto <marot...@gmail.com> wrote:
> Hi John. > thanks for that. > > That's actually a good option but I would need the category text on the > field so I can facet on the field and get every category and the number. > > On 26 March 2017 at 18:27, John Blythe <j...@curvolabs.com> wrote: > >> 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 >> > >