[ https://issues.apache.org/jira/browse/OAK-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikas Saurabh updated OAK-3800: ------------------------------- Fix Version/s: 1.4 > Lucene spell check index definition can't be restricted to a specific type of > node > ---------------------------------------------------------------------------------- > > Key: OAK-3800 > URL: https://issues.apache.org/jira/browse/OAK-3800 > Project: Jackrabbit Oak > Issue Type: Bug > Components: lucene > Reporter: Ankit Agarwal > Assignee: Vikas Saurabh > Fix For: 1.4 > > > While performing a spell check query like > SELECT [rep:spellcheck()] FROM [nt:unstructured] WHERE [jcr:path] = '/' AND > SPELLCHECK('helo') > SpellCheck does not provide any result. In current implementation, spell > check in Oak work only for index definitions for nt:base nodetype. > So, an index definition like: > --------------------------------------------------------------- > <lucene-suggest > jcr:primaryType="oak:QueryIndexDefinition" > async="async" > compatVersion="{Long}2" > type="lucene"> > <indexRules jcr:primaryType="nt:unstructured"> > <nt:base jcr:primaryType="nt:unstructured"> > <properties jcr:primaryType="nt:unstructured"> > <description > jcr:primaryType="nt:unstructured" > analyzed="{Boolean}true" > name="description" > propertyIndex="{Boolean}true" > useInSuggest="{Boolean}true" > useInSpellcheck="{Boolean}true"/> > </properties> > </nt:base> > </indexRules> > </lucene-suggest> > ----------------------------------------------------------- > works, but if we change nodetype to nt:unstructured like: > ------------------------------------------------------------ > <lucene-suggest > jcr:primaryType="oak:QueryIndexDefinition" > async="async" > compatVersion="{Long}2" > type="lucene"> > <indexRules jcr:primaryType="nt:unstructured"> > <nt:unstructured jcr:primaryType="nt:unstructured"> > <properties jcr:primaryType="nt:unstructured"> > <description > jcr:primaryType="nt:unstructured" > analyzed="{Boolean}true" > name="description" > propertyIndex="{Boolean}true" > useInSuggest="{Boolean}true" > useInSpellcheck="{Boolean}true"/> > </properties> > </nt:base> > </indexRules> > </lucene-suggest> > ------------------------------------------------ > , it won't work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)