Body isn't stemmed in English in current implementation. Hence why it's
there. As i said my immediate need is for headings only. So happy to remove
others.
On 19 Apr 2014 05:16, "Sijo Cherian" <notifications@github.com> wrote:

> In src/main/java/org/crosswire/jsword/index/lucene/LuceneIndex.java:
>
> > @@ -381,12 +395,15 @@ private void generateSearchIndexImpl(Progress job, List<Key> errors, IndexWriter
> >          // Set up for reuse.
> >          Document doc = new Document();
> >          Field keyField = new Field(FIELD_KEY, "", Field.Store.YES, Field.Index.NOT_ANALYZED, Field.TermVector.NO);
> > -        Field bodyField = new Field(FIELD_BODY, "", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.NO);
> > -        Field introField = new Field(FIELD_INTRO, "", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.NO);
> > +        Field bodyField = new Field(FIELD_BODY, "", Field.Store.YES, Field.Index.ANALYZED, Field.TermVector.NO);
>
> In current impl, FIELD_BODY is already ANALYZED/stemmed (stemmer is based
> on language of the book). So introducing FIELD_BODY_STEM will add confusion
> & double up the index size.
> +1 for Store.YES: allows for highlighting in future
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/crosswire/jsword/pull/77/files#r11792335>
> .
>