Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ken Kuehnel
    @kkuehnel_twitter
    Thanks Jaroslav. Appreciate the info and quick response. Looks like we have two options for adding a root url to our index. Are either of these two methods preferable: 1.) CRAWL aka: https://news.mydomain.com, or 2.) API aka: https://clientapi.myservices.com/data/my-api-key/news that returns JSON object? Happy to test both unless you already know the answer.
    Jaroslav Vaňkát
    @JVankat
    @kkuehnel_twitter that really depends on the use-case, the crawler will be always slower than using the api, and with the api you might need slightly less effort to get clean data, but we currently cannot periodically go to a url and pull json data, so you'd have to push the data to us.
    Miklós Fülöp
    @mfulop_gitlab
    Hi! SS360 init throws if the element pointed by the searchbutton selector is an SVG. For SVG elements, className is not a string but an instance of SVGAnimatedString object. According to MDN, the solution is to use element.getAttribute/setAttribute instead
    Jaroslav Vaňkát
    @JVankat
    Hey @mfulop_gitlab - thanks for the feedback! Do you have an example where I could check this issue? Genereally I don't think it's a good idea to use an svg directly as a search button (unless it has some semantic markup), but maybe we could improve our script to support this.
    Miklós Fülöp
    @mfulop_gitlab
    hi! I worked it around but it was a div with a font-awesome svg icon inside
    I did not reverse-engineer your script but it looked to me like it's not just using the actual element but also all of its child element's classNames for some reason (something 'tracking' as I remember)
    Zhang Weixiang
    @that_wei_twitter
    does anyone know if it's possible to do custom search results?

    [ search result 0]

    [ search result 1]

    [ some custom text ]

    [search result 2]

    [search result 3]

    [etc]

    Jaroslav Vaňkát
    @JVankat
    Hey @that_wei_twitter - we do have this option in our Query Mappings, and we've improved this in our new control panel (not everyone can switch just yet, you might have seen a dialog in the old control panel inviting you to test the new one, if not, you can send me your site id and I will check whether switching your account is possible). Basically in the old control panel you can define some custom html to be displayed, in the new one you can create a custom result, meaning define title, image and snippet, without having to write html. See https://docs.sitesearch360.com/query-mappings and https://docs.sitesearch360.com/whats-new-in-the-new-site-search-360-control-panel
    Amir
    @Fastamir_twitter

    Hey Does anyone know if you can search on 2 fields and if so is there any example anywhere. I am looking for

    Food Type Postcode
    Drop down of foods Free format Entry field
    SEARCH

    So the search would be for example:
    Food Type Postcode
    Pizza M24
    SEARCH

    The results coming from woo commerce products and supplier database.
    Does this make sense? Sorry re the formatting, this platform not best for format text!

    Any help would be appreciated.

    Thanks

    amir

    yonatanLehman
    @yonatanLehman
    Hi. Our main site uses search-360 and now I want to add the search to the documentation section as well.. The documentation needs a different configuration, for example 1) different set of filters 2) different UI, 3) give priority to results from the documentation section as opposed to other parts of the site. Is this doable or do I need a separate account/whatever to achieve this? Thanks
    Jaroslav Vaňkát
    @JVankat
    Hi @Fastamir_twitter - if I properly understand your use-case, then you basically need to merge data from multiple sources into a single document which would be searchable, is that correct? We currently don't support merging data from multiple sources, so the only solution I can think of would be using our API to index your content.
    Jaroslav Vaňkát
    @JVankat

    Hi @yonatanLehman - do you need to display data from your website and your documentation in the same search interface? If not, then you could just limit the content group that should be displayed to your documentation section.

    1) Filters - would work in that case, as long as those get only extracted from your documentation pages
    2) UI - that depends mainly on your configuration and desired setup
    3) Priority - do you have an example what exactly you'd like to achieve?

    yonatanLehman
    @yonatanLehman
    Ideally, when a user is searching from my part of the site (documentation) he would first get results from the same section (same root URL /docs/....) results from other parts of the site (say marketing) would appear further down. Regarding the UI - the search from within the documentation shows a more sophisticated search UI e.g. filters than the main site. Priority - as I said - when searching in the docs section. pages from docs would have priority over pages from tutorials or marketing parts of the site.
    Jaroslav Vaňkát
    @JVankat
    @yonatanLehman that goes in the direction of having two different boosting strategies simultaneously, that's something we do not currently support. A workaround would be having a numeric data point (which would be e.g. 1000 for document pages) and creating a sorting option which would be set for your docs search (this would cause the other pages to be at the end of the list, though) to prioritize docs pages. I don't currently see a nicer solution within the same account. Does this make sense?
    yonatanLehman
    @yonatanLehman
    Yes. I'll have to think about how to deal with it. Thanks
    Amir
    @Fastamir_twitter
    @JVankat No I think there is a misinterpretation as it is hard to explain. Basically I want to be able to search for 2 fields with a word press site / database. One field is say food types (burgers, pizzas..etc) and the second field is suppliers postcode. So all suppliers that supply burgers in postcode M20 should be listed. Think of it as a justeat type of search but search for 2 fields instead of 1 field. I'm not sure is that is a better explanation. Thanks
    Jaroslav Vaňkát
    @JVankat
    Hey @Fastamir_twitter I see that our support team has already replied you, please let's keep the conversation in one channel. Otherwise this should definitely be doable, we do search all indexed content, and you can pick structured data as data points which means they'll be searchable. Hope this helps.
    Bong-Chu Papke
    @Bongmaster407
    Hi @JVankat
    It's been quite a while, everything works fine with our integration, but now our client would like to use the Smart 404 feature. And I'm here again to ask a few questions. It would really be nice if you could help us again.
    So, is it in general possible to use the same config object for both, the search results page and the 404 page (for Smart 404)? We tried it this way and encountered a few problems with the filters and sorting. As we don't need filters and sorting for Smart 404, we just hide them. I just would like to know if we would save ourselves trouble or unnecessary complexity if we used different configurations. And another small one: is Smart 404 limited to 12 suggestions?
    Jaroslav Vaňkát
    @JVankat
    Hi @Bongmaster407 - the sorting and filters should actually be disabled for Smart 404, so showing them is not the expected behavior, I will update the script tomorrow. And yes, the Smart 404 is limited to 12 search results.
    yonatanLehman
    @yonatanLehman
    I have set the URL to https://applitools-docs-review1.herokuapp.com/docs/ and the Sitemap URLs to https://applitools-docs-review1.herokuapp.com/docs/sitemap.xml and I'm getting an error "Our crawler could not find any links leading to the same domain on this page. No additional pages will be crawled." All the URLS in the file start with " https://applitools-docs-review1.herokuapp.com" - whats the problem ?
    Jaroslav Vaňkát
    @JVankat
    Hi @yonatanLehman I can set https://applitools-docs-review1.herokuapp.com/docs/ as root url without any issues, what exactly were you using as root url?
    yonatanLehman
    @yonatanLehman
    Its starting to work now. I'm fidning the UI vry bugy - is this a new UI ?
    Jaroslav Vaňkát
    @JVankat
    @yonatanLehman great! What exactly do you find buggy (except of the root url issue we can't reproduce anymore)? We're still working on the new control panel, so all feedback is appreaciated.
    yonatanLehman
    @yonatanLehman
    I'll try and collect it and report later - but it's a pity that I have to deal with the bugs while I'm evaluating the tool...... How do I control the test snippet that is displayed with the result ? I want to be abled to 1) specitfy which text shoudl be displayed (e.g. give a div ID) and ideally to add some HTML/CSS to style it. This needs to be page dependent (e.g API pages give different previes than articles)
    yonatanLehman
    @yonatanLehman
    My API pages can be filtered based on two critea language (java,javascript, c# etc) and platform (selenium, appium, imagbes, etc) - I defined search data paoints that picked out this informatio from the URL. When I select say a language (java) it hides some options (other languages - good) - but it doesn't show all the independent options (platforms) some are missing - maybe its my problem maybe its a bug - how can I debug this?
    Jaroslav Vaňkát
    @JVankat

    @yonatanLehman the search snippet can be defined under Search Settings > Search Snippet (with the Use content behind search snippet XPath) setting (but we only take the content of the element, you can't add some html,...).

    Regarding the platlang filter, the behavior depends on the selected logic, currently the Results must match all selected values option is selected, meaning that only options that are still available after selecting the filter (e.g. java) will be displayed.

    yonatanLehman
    @yonatanLehman
    It's finding data points that I removed (even though I reindexed) and when I select the first data point its not showing the second set of data points that match it - how can I see all the urls that the search indexed (maybe I reached the limit and it didn't see the urls I'm expecting to see).
    yonatanLehman
    @yonatanLehman
    Hi Jarsoslav. Still stuck... Here is my setup now. Our URLs have the form such as "https://applitools-docs-review1.herokuapp.com/docs/api/eyes-sdk/classes-gen/class_eyes/method-eyes-eyes-selenium-java.html". I defined one data point "lang" that defines multiple patterns for the language e.g. /api/eyes-sdk/.-(java). and /api/eyes-sdk/.-(javascript). and /api/eyes-sdk/.-(python). I defined a second data point "platform" that picks out the platform, e.g. /api/eyes-sdk/.-(appium)- and /api/eyes-sdk/.*-(selenium)- I then defined a multiple choice filter that is based on these two data sources with "Results must match all selected values selected". I reindexed and the filter says "0 unique values extracted". If I understand correctly by defining multiple URL patterns for a data source I am saying that it should pick up all occurrences of the pattern. So since each URL has two parts ...platform-language.html once data source picks up the platform and the 2nd the language. What am I doing wrong?
    yonatanLehman
    @yonatanLehman
    OK solved. I define one data point that selects the language and define a filter that uses that. I define a second data point that selects the language and define a filter that selects that. Now I have two different filters and (it seems)that if you select from both filters it only shows results that match both filters. Looks like mission accomplished - The documentation is not very clear on this....
    Olesya
    @lesyaelf_gitlab
    Hi @yonatanLehman, you're currently on the Holmes plan and it's limited to 3K pages. We've indexed a bit more than that but not all URLs that are present in your sitemap. You can check what's indexed in the Index. I can see the filter values extracted though. Could you rather give a sample query and describe the result/filter behavior you'd expect? Can it be indeed cause by some entries missing from the index due to the page limit reached?
    Looks like I was just a bit late with my previous message :) Yes, now I see that you needed to define two separate filters with two separate data points as sources. We'll keep that in mind to improve the docs, thanks for the feedback!
    yonatanLehman
    @yonatanLehman
    What does it mean when a filter relies on two data sources. What is the difference between defining a single datasource with multiple patterns and a filter that depends on multiple data sources?
    Olesya
    @lesyaelf_gitlab
    I guess the confusion comes from how the logic is described: "Results must match all selected values within every filter source (data point)". If more than one data point (with all their values combined) define the same facet/filter, then you can basically pull them in together and merge into a single filter.
    So you define a datasource (data point) first, and it can have one or multiple patterns. And then in turn, one filter can rely on multiple data points (but doesn't have to).
    yonatanLehman
    @yonatanLehman
    OK. So my next step is to put this on my draft site for review by Product. My problem is that on the Installation page it tells me that my site is a Wordpress site. True - but not quite - our main site (applitools.com) is indeed a Wordpress site and already has sitesearch - I am working on the search for my part of the site (applitools.com/docs) - and I need to set this up on my Heroku site (see the URL above) which is not Wordpress. I then need to workout how to combine the main site search with my docs - that's a separate issue I'll discuss next
    Olesya
    @lesyaelf_gitlab
    Right, I see - we tried to simplify it for not-so-techy WordPress users that we also have as customers and overlooked more complex cases, it seems. So the bare minimum code snippet you'd need would be this one, described in the Installation article:
    <script>
       /* Create a configuration object */
       var ss360Config = {
          /* Your Site ID that usually equals the domain you signed up with */
          siteId: 'applitools.com_1',
          /* A CSS selector that points to your search box */
          searchBox: {selector: '#searchBox'},
       };
    </script>
    <script src="https://cdn.sitesearch360.com/v13/sitesearch360-v13.min.js" async></script>
    All additional configuration parameters are listed on the same page (under Advanced configuration). A shortcut would be using our interactive Search Designer to customize the settings and get a code snippet at the bottom
    Olesya
    @lesyaelf_gitlab

    Combining multiple domains in one search comes down to providing multiple sitemaps and/or multiple URLs to crawl under Crawler settings. To break them down (so you can show results from one domain and hide results from the other, for example), you can use Result Groups.

    To show/hide groups you can either adjust your ss360Config code like this (group names must match the names you've defined, this is just an example):

    var ss360Config = { contentGroups: { include: ['Docs','Heroku'] } }

    Or you can add data-ss360-include or data-ss360-exclude attributes to your search box HTML markup:
    <input type="search" data-ss360-include="['Docs','Heroku']">

    yonatanLehman
    @yonatanLehman
    NIce answers! thanks
    Olesya
    @lesyaelf_gitlab
    @yonatanLehman happy to help! Both Jaroslav and I are done for today but if you have further questions, feel free to leave a message here or email us, and we'll answer as soon as we can tomorrow.
    yonatanLehman
    @yonatanLehman
    image.png
    Hi. Where in the Control panel do I see the filter ID? In https://docs.sitesearch360.com/filters it is mentioned but I can't see where the image shown is in the control panel. The edit filter pages looks like this
    Jaroslav Vaňkát
    @JVankat
    Hi @yonatanLehman - this seems to be currently missing in the new interface, we'll take care of adding the ids. The id of your language filter is fid#5 and the platform is fid#6.
    yonatanLehman
    @yonatanLehman
    Thanks.
    Bong-Chu Papke
    @Bongmaster407
    Hi @JVankat and thank you for your response. Just one more question... maybe ;) isn't it possible to limit the results for Smart 404 to any number, e.g. 4? It seems that ss360Config.results.moreResultsPagingSize doesn't affect Smart 404.
    Jaroslav Vaňkát
    @JVankat
    @Bongmaster407 we could make it configurable, let me check whether we can squeeze it into this week, I'll get back to you later today.
    Bong-Chu Papke
    @Bongmaster407
    @JVankat - our client just doesn't want to overload their 404 page with too many Smart 404 suggestions, you know? They would like to have 3 or 4 suggestions and a button to display more if available. But please, I don't want to rush you. For them it's fine to release Smart 404 on their site with 12 suggestions, that's not a problem. We can adapt when you're fine with it. Maybe it would make sense to make it configurable similar to the site search, e.g. max. number of suggestions and paging size, maybe even more.
    Ah, and you removed filters and sorting from Smart 404, right? So, can I safely remove the CSS to hide them?
    Jaroslav Vaňkát
    @JVankat
    @Bongmaster407 yes, I did remove those two, removing the CSS should be safe. I think we should be able to make this configurable until Friday, will keep you posted on this.
    Bong-Chu Papke
    @Bongmaster407
    @JVankat
    Perfect, thanks a lot for both, filters and sorting, and Smart 404. I'd be happy to hear from you soon. As I said, don't rush the changes on Smart 404. It's really a cool feature. Cheers!