1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on ElasticSearch Essentials

Discussion in 'Resource and Add-on Discussions' started by Daniel Hood, Nov 9, 2015.

  1. Daniel Hood

    Daniel Hood Well-Known Member

    Let me start by saying it'd require ElasticSearch and XenES.

    Would anyone be interested in an add-on that suggested alternate searches based on typos made in the search string? If so, how much would you pay for such an add-on?

    I used the ElasticSearch suggestions api for my day job (we use ElasticSearch to search our site content) and achieved something like this in order to deal with typos. I thought about it and figured it might generate some interest here. Just wondering if it's worth making it an add-on.

    Our use at work for example is if you search "Hotle" it'll say "Did you mean hotel" (hotel being linked to the search page for the correct term.
    The Forum Heroes, eva2000 and Jake B. like this.
  2. Stuart Wright

    Stuart Wright Well-Known Member

    How does it determine a spelling mistake and where does it get the suggestions from?
    How would it deal with search terms like LG 55UB820V ?
  3. Alfa1

    Alfa1 Well-Known Member

    I guess it would need to store previous search terms to build up a database of popular terms.
  4. Daniel Hood

    Daniel Hood Well-Known Member


    It compares your query against common words in your documents. So what might be considered a typo on your site may not be on another. Continuing with my "hotel" example. If "hotle" is used in a lot of your documents, it may not be corrected. If there's a word that used in more documents than the entered word is, the suggestion is made.

    Depends on what is in your index, to be honest.

    No, it's not dependent on use at all. It just uses words/phrases that are in your documents.
  5. Stuart Wright

    Stuart Wright Well-Known Member

    In that case Daniel, it sounds very interesting.
    How much would I pay? Hard question. I guess a couple of hundred dollars tops, really.
  6. Daniel Hood

    Daniel Hood Well-Known Member

    I'm more or less just trying to figure out how much interest there is if I were to make this an add-on. I have no idea how many people have XenES, so I don't want to go through this trouble if only five people are interested or something. Not really looking for anyone to fund the development or anything, as it's not a ton of work. Just want to make sure I'm not going to do it for just a couple people and them valuing it at just a few bucks.
  7. Steve F

    Steve F Well-Known Member

    Maybe a good time to just do XenES Essentials - start building it with features. Would most likely bring more attention to the add-on, if it can be done in this form that is.
  8. TheComputerGuy

    TheComputerGuy Active Member

    I'd pick it up, test it, and probably roll it out on a few sites.
    Daniel Hood likes this.
  9. empire

    empire Well-Known Member

    I'm getting to a point where I feel like we need to slow down with the add-ons, but I'd be very interested in XenEs if it had a few improvements in one package.
    Daniel Hood likes this.
  10. Daniel Hood

    Daniel Hood Well-Known Member

    eva2000, empire and MattW like this.
  11. MattW

    MattW Well-Known Member

    Daniel Hood likes this.
  12. empire

    empire Well-Known Member

    I really like it!

    Perhaps it should use a different phrase if it has nothing to suggest, as it still says there are search terms below, even if there aren't.
  13. Daniel Hood

    Daniel Hood Well-Known Member

    hmm.. it should have just been doing what it does by default (displaying a message saying no results).

    Also, if you search xenreview now, you'll see "did you mean: xenreviews" as long as you're on page 1.
  14. empire

    empire Well-Known Member

    The search I tried was for:

    And it didn't say no results, it just gave the message about terms below.
  15. Daniel Hood

    Daniel Hood Well-Known Member

    That's an easy fix, thank you.
  16. Kevin

    Kevin Well-Known Member

    I like the idea so far.

    A few questions (well, two)...

    Is this being done totally within XF as an add-on or does/will it require any changes to the ES installation?

    Any chance of being able to find alternative words instead of the automatic calculation? eg: If somebody searches, example, for "Boyega" and gets no hits I'd love to be able to have it so that it suggests "Star Wars" instead.
  17. Daniel Hood

    Daniel Hood Well-Known Member

    I haven't made any changes to a standard ElasticSearch installation. It does query against ElasticSearch one extra time but there are not any extra database queries.

    That's not currently in my plans but I can definitely see the use case, I'll consider it.

    I think once I make the template for the suggestions look better I'll be ready for a few beta testers. Message me if you're interested in beta testing. I know it works, clearly, I just want to see if people are happy with it in much larger databases. I'd also appreciate some opinions on the monetary value of the add-on (how much you think it should be listed for).
  18. Daniel Hood

    Daniel Hood Well-Known Member

    I forgot to update the thread but you can head over to http://xenreviews.com and start typing "xen" in the search bar. ;)
  19. Ernest L. Defoe

    Ernest L. Defoe Well-Known Member

    Daniel Hood likes this.
  20. The Forum Heroes

    The Forum Heroes Well-Known Member

    Sounds really good! Would love to see this released as your next project after xenReviews is out.
    eva2000 and Alfa1 like this.

Share This Page