[
https://issues.apache.org/jira/browse/CAMEL-15335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167763#comment-17167763
]
Aemie commented on CAMEL-15335:
-------------------------------
[~zregvart] for the past day while designing on the search result layout, I
wanted to not involve the use of scrollbar and as well not limit the number of
searches queries. In normal algolia, the number of hits is a lot and we are
minimizing to 10 itself and so I was thinking to take inspiration from the
Algolia UI on how they presented the results with pagination. I had this in
mind -
* We get max 10 results for a search query and all its details are present
within the data variable.
* We take the data variable and distribute the whole data in terms of 3 query
results per page.
* For each page, we make use of the same layout.
For distributing the data, I have come with the following logic implementation
as stated in the *distributeData.js*. This will remove the use of scrollbar and
allow about 10 result queries sorted in a sophisticated fashion.
I have created the basic layout and will create a PR for it soon but I wanted
to implement pagination as same as in Algolia UI as well as I think it will be
really useful. What do you think?
> Search Result Layout
> --------------------
>
> Key: CAMEL-15335
> URL: https://issues.apache.org/jira/browse/CAMEL-15335
> Project: Camel
> Issue Type: Improvement
> Components: website
> Reporter: Aemie
> Priority: Major
> Attachments: distributeData.js, search-result#1.png,
> search-result#3.png, search-result-design#2.png
>
>
> The current search result design doesn't fit entirely with the website
> design. Thus, I wanted to introduce a few changes to how we present it. Also,
> in addition to I would like to suggest that we include only the top 5 or top
> 6 results and not 10 as the pages are ranked by weight based on the search
> query and presented so a good practice would show fewer results which are
> precise.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)