Add search suggestion in both API and site on broadleaf community edition - broadleaf-commerce

How to add search suggestion in site and API similar to broadleaf demo site?
I can't find search suggestion in my broadleaf spring-boot community edition.

You can achieve this by adding list of keywords for every product.
In schema.xml
1. Add a new field keyword for storing keywords from db
2. Add copyfield suggest_phrase for suggestion
3. copy keyword, manufacture field in suggest_phrase.
In solrconfig.xml,
1. Create searchcomponent in the name of "suggest"
2. Create request handler "/suggest" for that component which should have field as suggest_phrase.
Extend SolrSearchIndexImpl.java to add keywords in solr while reindexing.
You will get keywords as suggestion.

Related

Is there a simple example on how to add an entity extension for customers with field in the admin of shopware 6?

I want to add an entity extension to a customer in shopware 6. I was able to do so with the examples in the documentation of shopware on the PHP side and now I wonder how to display and modify this new "field" in the shopware 6 backend.
I searched a lot and also tried to find a simple plugin where I could get some inspiration from, but unfortunately I'm not able to find.
So again the question 😊 Is there any simple example on how to add an entity extension for customers with field in the admin of shopware 6? Or an example plugin, where I can see how it could be done?
What you're (likely) trying to achieve would be the combination of multiple separate tasks.
If you want to store data in the database you'd need a new custom entity
If you want to associate the new entity with the customer you'll need the entity extension
You'll need to add a new field in the administration
I've linked to examples respectively, but you'll probably need to take the time and invest in studying the documentation regardless.
I also created an example plugin that combines all these steps and adds a new entity with a height field as association to the customer and displays the field in the administration. You can find the repository here.
Not sure if you considered this, but depending on what you are trying to accomplish, the simplest way is probably adding a custom field (this can be done progamatically or even via the admin panel).
The drawback is, that those fields' values are stored as JSON and it has drawbacks when you try to search through them.

Shopware 6 - shopping experiences layout for search results

i'm using Shopware 6.3.0.1.
is there currently a possibility to assign a standard layout from the shopping experiences to the search results?
No, this is not possible by now. Everytime you create a new category in the administration it is created with no cmsPage selected at all.
Depending on the way you create the category there are ways to hook into the code and set one on creation as well. I assume an event subscriber listening for the creation of a category entry is a way to do it.
Currently shopware doesn't support cmsPages for the search result.
You can vote for this Feature Request:
https://issues.shopware.com/issues/NEXT-10403

Quick search by related entity field - CRM 2011

Is there possible to do quick search by related entity fields?
In example, if we have Contact lookup field on Lead entity. Can we search Leads by Contact's email address or address name?
Can you refer me to some tutorials.
I know that this is possible by using 'Advance find' option.
Thanks in advance.
Sadly, it's not possible to natively configure quick search to set attributes on related entities as "find columns".
As you might be aware, the native solution would be to find contacts by email address then open their record to look at their Leads.
The only other solution I can imagine would be to embed a custom Silverlight or ASPX page behind a navigation or ribbon button. In this case you could execute your own logic for searching but would not get the rich functionality of the native CRM grid without a lot of work.

Document Library Crawl

I set up a new scope and passed in the URL for a specific document libary that I created that hold 2 word documents.
For some reason when I start a full crawl, it does not see the 2 word documents.
The word documents have meta data and I've created Managed Properties that map the crawled properties.
I am trying to utilize the Advanced Search webpart to be able to search from this scope. When I enter a search term such as the filename of the word document, no results are returned.
Any ideas?
You need to enable the document library to be searchable. Enable it through the document libraries properties.
Edit
See Harnessing Properties in SharePoint Search
To get to the Document Library Advanced Settings page, from within a given library, select the Document Library Settings menu item from the Settings dropdown, and then select the Advanced settings hyperlink under the General Settings header. Somewhere in there, you should see something like the following image. Make sure that the radio button is set to Yes. Source
(source: bamboosolutions.com)
What account is the crawler running as? Maybe that account doesn't have read permission on the list, so it can't index it.
Can you find information from the same documents in other document libraries, when using the default search scope?
Can you find information from this document library using the default search scope?
Are you trying to create a custom search results page, or just scope?
One thing to try is to check the search crawl log to see if there were any errors when it was searching the library.

Sharepoint lookup column customization

I'm developing a customized document library in the SharePoint 2007 environment. What I'm doing is creating a content type with multiple columns of information related to the document. Users will use this content type to upload new documents rather than the standard new document functionality. One of my columns in this content type is proving to be more difficult than I can handle.
The column is essentially supposed to be a sort of 'related documents' column, where it offers the user the option to select another document that is related to this document. So I thought I'll create a lookup column that displays the titles of all other documents in the library and allows the user to choose one. Simple enough, but I need much more functionality than this...and here is where I need help.
I need the related document column to actually link to the related document, not just display the title...not in edit mode while a user is adding a document, just in the standard document library view after the document has been added.
I also need the link to include a url variable that is stored in another column named 'Document Number'.
I assume this will require custom coding which is fine. Please not that I can't use SharePoint Designer. I use Visual Studio and code must be C#. This will be packaged and released as a feature.
Can anyone help me acheive this? Example code, suggestions, etc...? Thanks!
I would suggest using a multi-column field as your base value type - this article on MSDN should get you started. For rendering the field in document library views, you will need to use a rendering pattern. Conveniently, MSDN has an example of a multi-column RenderPattern.

Resources