David74000 / SP2019-modern-search-webpart-with-taxonomy-refiner

SP2019 Search webpart (Search Box, Refiners/Filters, Pagination and Search Results) based on Matej4386 solution. I added additionnal taxonomy refiner template
0 stars 0 forks source link

Setup help #1

Open Hussain-maker opened 3 years ago

Hussain-maker commented 3 years ago

Hi David,

Thanks for posting this solution up, I was just wondering if you have any pointers on how to use the Taxonomy refinement filter?

I'm guessing you use with the owsmetadatatagsallinfo property but I'm not successful yet. Could you help with an example or anything?

David74000 commented 3 years ago

Hi @Hussain-maker , no I am not using the owsmetadatatagsallinfo. I am using a managed property that is plugged to a taxonomy column, and that is set a refinable in the search schema. The managed property is linked to a crawled property that has the following prefix : owstaxIdMYCOLUMNNAME. The important thing is that your managed property contains the ID of the term. You can verify this point by using the default renfinement template first, before using the taxonomy one. You should have something like that :

image

Let me know if it helps David

JoelHJ commented 3 years ago

I'm also curious about this. I have done what you describe and i get the data but it looks the same as with the default template. It won't drop the numberstring. I read in issue 610 that one needs to look at localization or something?

David74000 commented 3 years ago

Hi @JoelHJ If you select the default template do you have all terms in the following format : GP0|#XXX, GPP|#XXX or GTSet |#XXX where XXX is the id of the term in termstore ? The taxonomy refiner template read the format as described to get the term id and whether or not it's a parent term or a term set. If so, when you select Taxonomy in the dropdown for template refiner menu, then it should display all term label in a treeview. David

JoelHJ commented 3 years ago

@David74000 yes i do have it like that. However when i change the template it goes blank instead. L0|#045f7ee9d-fca2-48d1-bdec-875d738a3283|Collaboration (6)

It seems the template doesn't read it correctly... as when i change back to default one it reads it as above.

JoelHJ commented 3 years ago

@David74000 actually got it to work. Just had to change the temnplate and actually publish the page and reload it. IT works. :-)

David74000 commented 3 years ago

Cool ! nice job !