How can I sort the data in liferay search container whenever I click the small icon? Ascending or Descending order. How will I achieve that? How will I add the ascending/descending function in search container?
Thank you in advance. Please help me.
You can implement a sorting in liferay search container 2 ways
1. Using liferay api
2. By implementing custom order comparator
Here is a example you can refer it has sown both examples in detail http://itsliferay.blogspot.in/2011/07/orderable-search-container.html.
hope this helps you.
Related
I have an application that will have a front end that contains fields for a provider. One of the options is to be able to search for different providers. There can be up to 6 fields populated to search on or they can only submit one field for the search. For example, it can search on firstName, lastName, taxId or it can just search on lastName.
Can anyone steer me in the right direction on how to do this? I haven't been able to find any relevant tutorials for this specific problem. Any examples or links to this type of solution would be greatly appreciated. Thanks in advance.
isn't it become very complex for programmer to validate every possible combination what if there are 30 fields available then there will hundred's of combinations to validate. Is there any other solution for that.
I am looking to build an Apache Superset interactive dashboard for one of my clients which has existing dashboards on Tableau consist of 6-7 widgets which can interact (filter) with one another at different points of clicks. I am not sure if we can code such an action filter feature in Superset. Please let me know.
If anyone is unaware of Tableau action filter please go through below link for the demo:
https://www.youtube.com/watch?v=Bhhb74Zgvzo
Create a new chart and select Filter box as visualization type. Select and configure the columns you want to filter on and add it to your dashboard.
I am a newbie to elasticsearch. i need a clarification. i can understand how routing works, but I have a question.
Can i create routing for an document with multiple field. if yes, can i search the
data using single routing value. Can any on provide any example about it.
Imagine I have 5 fields: [username,id,age,dept,salary]. Now i need to create a routing value for this document. Can I do so using the username and id field?
Thanks in advance.
In answer to your question: no, you can't automatically use multiple fields for a routing value when indexing a document. You can choose one and only one field, and that field must contain a single value.
However, you could manually concatenate the username and id field and pass it in the indexing request:
PUT /index/type/id?routing=username_id
{ body }
That said, routing is a feature for more advanced users. It is very useful but does make life more complicated. You say that you're a newbie, so I'd suggest not playing with routing just yet. That can follow when you're running a 50 node cluster.
I am doing a ajax based search which suggests the values from the database tables as the user inputs fields in the search box. It does work but its really very slow, takes more than 10 seconds minimum for any suggestions to load. how do I optimize this to make it fast..
Like Index it/save it in cache/crawl?
Right now autoSearch() js function is fired which retrieves data from the related table to load the suggestions. how do I make this faster?
I dont know if this will make a difference but I am using grails/groovy for application development.
Thanks
Priyank
Have you added an index to any searched fields (or checked in the database to make sure the examined fields are indexed)?
The Grails GORM does not automatically create indices for text fields unless you add the appropriate static mapping to your domain class.
I am working on a Magento site, and i would like to edit the default search result.
Editing search result is not editing the appearance of search result but the actual search results generated.
The idea is, if the Magento search does not return any value then i need to do a search in my custom table to fetch some relative products.
Could anyone help me to edit the default Magento search??
Thanks a lot in advance.
You will need to modify some of the models in catalogsearch module, this link has a good explanation of how to override Core classes. In your case you will need to add your logic somewhere in the Query model or its resource or collection models.
This CMS Search extension will provide an excellent example of how to extend the default search. It adds extra content into the search index and allows you to control how those results are presented to the searcher.