Results 1 to 4 of 4

Thread: SKNearbySearchSettings doesn't filter results when passing categories + keyword

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Etablierter skobbler
    Join Date
    11.04.2015
    Posts
    41

    SKNearbySearchSettings doesn't filter results when passing categories + keyword

    Hi

    Just want to make sure this situation ..

    Code:
                    nearSets = new SKNearbySearchSettings();
                    nearSets.setLocation(new SKCoordinate(passedLng, passedLat));
                    nearSets.setRadius((short) 10000);
                    nearSets.setSearchMode(SKSearchManager.SKSearchMode.OFFLINE);
                    nearSets.setSearchType(SKNearbySearchSettings.SKSearchType.POIS);
                    nearSets.setSearchResultsNumber(500);
                    nearSets.setSearchResultSortType(SKNearbySearchSettings.SKSearchResultSortType.PROXIMITY_SORT);
    
                    nearSets.setSearchCategories(colected);
                    nearSets.setSearchTerm(keyword);
    
                    sksearchmanager.nearbySearch(nearSets);
    If I don't select specific category then results get filtered by keyword .. But when I have some category selected (doesn't matter which one) - keyword parameter is ignored and nothing changes in my List ..

    Am I right and this is the bug? Or there are any other way to filter POI's by Keyword+Category ?

    As you see, there shouldn't be problem in the way how I pass selected categories via Intent, because results are filtered by fast food category in the image on the right..

    Here are some logs:
    1) working filter : SKSearchManager---- Nearby search object = SKNearbySearchSettings [radius=10000, searchTerm=mcdonald, location=[24.1675167,56.977519], searchMode=OFFLINE, searchType=POIS, searchResultSortType=PROXIMITY_SORT, maxSearchResultsNumber=500, searchCategories=null, searchLanguage=LANGUAGE_EN]
    2) not working filter: SKSearchManager---- Nearby search object = SKNearbySearchSettings [radius=10000, searchTerm=mcdonald, location=[24.1675167,56.977519], searchMode=OFFLINE, searchType=POIS, searchResultSortType=PROXIMITY_SORT, maxSearchResultsNumber=500, searchCategories=[96], searchLanguage=LANGUAGE_EN]
    or
    2a) not working all food categories selected: SKSearchManager---- Nearby search object = SKNearbySearchSettings [radius=10000, searchTerm=mcdonald, location=[24.1675167,56.977519], searchMode=OFFLINE, searchType=POIS, searchResultSortType=PROXIMITY_SORT, maxSearchResultsNumber=500, searchCategories=[56, 96, 127, 179, 359], searchLanguage=LANGUAGE_EN]


    mcdonalds_search.jpg
    Last edited by mz87; 07.12.2015 at 13:46.

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    We'll investigate this and get back as soon as possible with an answer.

  3. #3
    Etablierter skobbler
    Join Date
    11.04.2015
    Posts
    41
    Hi! Any news regarding this bug?

  4. #4
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Hi mZ87,
    I have the answer from our dev team: we confirm it is a bug. Until we'll have a new build with this fix, as a workaround: set the search categories from the main categories enum(SKPOIMainCategories).

    Let us know if we can help you with other questions.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •