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

Omnisearch text box in AEM assets returns values with space as first charachter.

Avatar

Avatar
Validate 1
Level 2
niks1020
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Validate 1
Level 2
niks1020
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
niks1020
Level 2

16-11-2019

i am having an issue in my AEM installation:

In Author instance when I go to Assets-> click Filter from the top left option icon as shown below:

1855773_pastedImage_0.png

and then when I start typing keywords in the omnisearch box, I recive the suggestion drop down properly, but that suggestion drop down is formed using below kind of response. It has space ahead of the value and suggestion key's value as shown in the sample response below:

{"availableModules":[{"name":"Assets","contentNodePath":"/libs/granite/omnisearch/content/metadata/asset","id":"asset"}],

"suggestions":[{"value":"  asset\\_name","suggestion":"  asset_name"}]}

Can somebody help me with how this omnisearch works technically. I looked everywhere on google but was not able to find the technical details about this omnisearch box and the typeahead suggestion drop down formtion.

Thanks,

Nikhil

Replies

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

102 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

102 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

17-11-2019

What version of AEM are you running ?

What keyword do you type ? i.e. as asset name ?

Avatar

Avatar
Validate 1
Level 2
niks1020
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Validate 1
Level 2
niks1020
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
niks1020
Level 2

17-11-2019

I am using AEM 6.4.3

Key word I type is PAW

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

102 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

102 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

17-11-2019

So do you see a problem or its just a question on how omni search work ?

Avatar

Avatar
Validate 1
Level 2
niks1020
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Validate 1
Level 2
niks1020
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 3
View profile
niks1020
Level 2

17-11-2019

Oh sorry I didn't mention that it's a know issue in AEM assets 6.4.

If there is a space inserted as the first character for search then that search will return no result even if the assets for that keyword exists.

So how would someone go and customize the response so that ali is returning results with spaces in the value ( I am sure OOTB omnisearch suggestion respond doesn't have this bug).