: I meant it would be a simpler implementation in Solr because you don't
: have to deal with java or any Lucene API's. You just create a document
: for each "correct" word. For example the word "lettuce" would have a
: document:
:
: <doc>
: <field name="word">lettuce</field>
: <field name="start3">let</field>
: <field name="gram3">let ett ttu tuc uce</field>
: <field name="end3">uce</field>

with copyField, good character based NGram analyzer, and a substring
analyzer (for the start and end fields) you wouldn't even need to do all
that splitting on the client side ... just send each suggestion as a
single doc/field...

  <doc><field name="word">lettuce</field></doc>


-Hoss

Reply via email to