Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

lucene search suggestion Results issue

Avatar

Avatar
Validate 1
Level 1
prathapm1847112
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
prathapm1847112
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
prathapm1847112
Level 1

28-07-2020

Hi Experts,

 

We are using AEM 6.4.7 with Lucene Search functionality with oak indexing.  When ever the below query runs the suggestions gives results but only 255 characters even though the Description have 500 characters.

 

SELECT [rep:suggest()] FROM [nt:base] AS s WHERE suggest('Our ') AND ISDESCENDANTNODE(s, '/content/path') AND NOT [hideInSearch] = "true" .

 

 Please suggest do we need to add any config to give full sentence of the description.

 

Note: We are indexing pageTitle and Description of the page.

 

Replies

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

29-07-2020

Hi @prathapm1847112,

Could you please let know the index used when this query is executed.

I assume it to be custom index definition. If yes, can you share the config/property details that you added specific to suggest functionality. 

Avatar

Avatar
Validate 1
Level 1
prathapm1847112
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
prathapm1847112
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
prathapm1847112
Level 1

29-07-2020

Hi Thanks for the reply. We are using custom index for suggestions. Please see the below.

 

Hi VijayaLakshmi,

 

I am using the below custom index.

<my-suggest
jcr:primaryType="oak:QueryIndexDefinition"
async="async"
compatVersion="{Long}2"
evaluatePathRestrictions="{Boolean}true"
excludedPaths="[/rep:policy,/usergenerated,/projects,/campaigns,/phonegap,/mobileapps,/launches,/publications,/entities,/forms,/screens,/communities,/sites,/community-components,/catalogs,/experience-fragments,/we-retail,/oak:index,/install,/packages]"
indexPath="/oak:index/my-suggest"
reindex="{Boolean}false"
reindexCount="{Long}5"
seed="{Long}-4556624132782666122"
type="lucene">
<indexRules jcr:primaryType="nt:unstructured">
<nt:base jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<pageTitle
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
nodeScopeIndex="{Boolean}true"
useInSuggest="{Boolean}true"/>
<jcr:description
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
nodeScopeIndex="{Boolean}true"
useInSuggest="{Boolean}true"/>
<dcDescription
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
name="dc:description"
nodeScopeIndex="{Boolean}true"
useInSuggest="{Boolean}true"/>
</properties>
</nt:base>
</indexRules>
<suggestions
jcr:primaryType="nt:unstructured"
suggestAnalyzed="{Boolean}true"/>
</my-suggest>

 

Please let me know your thoughts on this.

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

29-07-2020

Hi @prathapm1847112,

Can you remove the "suggestAnalyzed" property on suggestion node -> reindex and then test.

This property uses index Analyzer for fine grained suggestion values whereas default suggest configuration return entire property value.

Avatar

Avatar
Validate 1
Level 1
prathapm1847112
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
prathapm1847112
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
prathapm1847112
Level 1

29-07-2020

Hi VijayaLakshmi, I tried that solution still its giving only 255 characters.

Avatar

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile
SundeepKatepally
Level 4

29-07-2020

we got similar issue , as a workaround i have switched the query from suggestion to search result query

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

30-07-2020

Hi @prathapm1847112,

Per Apache Jackrabbit Oak Lucene Index official documentation, there is no other config with respect to the suggestion result character limit. 

However I surfed about this from Apache Lucene perspective which uses FST completion/ Look up for autocomplete functionality. 

Couldn't arrive at complete flow because of the hidden implementation but found something related to constraint on Buckets

Did you see any exception log something like below line 

"Buckets must be >= 1 and <= 255:"