Currently, I am utilizing Ajax Solr for a development project. I am experimenting with the additive method in facet selection and successfully appending FQ values to breadcrumbs.
The issue at hand is that I only want the value to be displayed in the breadcrumbs.
For example:
fq: "{!tag=places}places:\"usa\"; // Displaying Value in Breadcrumbs "{!tag=false}places:"usa"
and
"{!tag=organisations}organisations:\"abcefg\"; // Displaying Value in Breadcrumbs "{!tag=organisations}organisations:"abcefg"
I specifically want only the value to be printed as shown below:
"{!tag=organisations}organisations:\"abcefg\"; // Displaying Value in Breadcrumbs "abcefg" "{!tag=places}places:\"usa\"; // Displaying Value in Breadcrumbs "usa"
How can I exclude "{!tag=organisations}organisations:" from the FQ data such that only the quoted values are returned?
I have attempted using:
fq[i].toString().replace('organisations', '').replace('{', '').replace('}', '').replace('!', '').replace('=', '').replace('false', '').replace('"', '').replace('"', '');
However, this method is not yielding the desired results of extracting quoted values.
If you have any suggestions on what regex pattern could be used in this scenario, please advise.