Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service does not provide aborter #41

Open
atatchin opened this issue Nov 4, 2021 · 0 comments
Open

Service does not provide aborter #41

atatchin opened this issue Nov 4, 2021 · 0 comments

Comments

@atatchin
Copy link

atatchin commented Nov 4, 2021

Hi Arnauld,

I implemented fuzzy search using search service you are providing but one thing that is no there as in the orginal one is an aborter. How can I implement this aborter with your service?

constructor(private searchService: SearchService,

private performFuzzySearch(data: any): void {
const { Query } = data;
//enable for debugging purposes only
const pin = true;
const pinAlldataCenter = true;
this.loadingService.showSpinner({ text: 'Searching...', diameter: 100 });

    //Perform a fuzzy search on the users query.
    this.searchService.searchFuzzy(encodeURIComponent(Query), {
        countrySet: this.countrySet,
        maxFuzzyLevel: 2,
        limit: 10,
        view: 'Auto'
    }).subscribe((response) => {
        this.loadingService.closeSpinner();
        let totalHits = response?.summary?.numResults || 0;
        if(totalHits > 0){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant