You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mark Fenbers <ma...@noaa.gov> on 2015/09/15 21:23:36 UTC

Moving on to spelling

Greetings,

In my app, I've successfully implemented full-text searching 
capabilities on a database using Solr.  Now I'm ready to move on to 
using Solr's spell check/suggest capability.  Having succeeded in 
searching, I figured spell-checking would be an easier step. Well, not 
for me!

I'm rather tangled in my configuration, and despite reading several 
documents, and looking at several examples, I don't feel like I'm making 
progress.  I'm about to give up, but I'm attaching stripped-down 
versions of my solrconfig.xml and schema.xml files to see if any really 
smart folks can spot what's wrong.  I've also attached the relative code 
snippet that triggers the error.  I'm so lost that I'm sure I have more 
than one thing configured improperly.

The most recent error is "Expected mime type is octet/stream but got 
text/html", but I've had a variety of errors and they seem to change 
each time I try something different.

My app allows end users to type text (using a StyledText widget) and 
post it to the database.  I'd like to spell-check the text before it is 
posted to the database and indexed for searching.  In my snippet, the 
variable "text" is what the end-user typed. "eventlogtext.logtext" is 
the table.column this text is stored in.

I'm using Solr 5.3.0.  I'm cross-eyed!  Any tips would be appreciated.

Mark