tipuesearch_set.js 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. Tipue Search 7.1
  3. Copyright (c) 2019 Tipue
  4. Tipue Search is released under the MIT License
  5. http://www.tipue.com/search
  6. */
  7. /*
  8. Stop words
  9. Stop words list from http://www.ranks.nl/stopwords
  10. */
  11. var tipuesearch_stop_words = ["a", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"];
  12. // Word replace
  13. var tipuesearch_replace = {'words': [
  14. {'word': 'tip', 'replace_with': 'tipue'},
  15. {'word': 'javscript', 'replace_with': 'javascript'},
  16. {'word': 'jqeury', 'replace_with': 'jquery'}
  17. ]};
  18. // Weighting
  19. var tipuesearch_weight = {'weight': [
  20. {'url': 'http://www.tipue.com', 'score': 60},
  21. {'url': 'http://www.tipue.com/search', 'score': 60},
  22. {'url': 'http://www.tipue.com/tipr', 'score': 30},
  23. {'url': 'http://www.tipue.com/support', 'score': 20}
  24. ]};
  25. // Illogical stemming
  26. var tipuesearch_stem = {'words': [
  27. {'word': 'e-mail', 'stem': 'email'},
  28. {'word': 'javascript', 'stem': 'jquery'},
  29. {'word': 'javascript', 'stem': 'js'}
  30. ]};
  31. // Related
  32. var tipuesearch_related = {'Related': [
  33. {'search': 'tipue', 'related': 'Search', 'include': 1},
  34. {'search': 'tipue', 'related': 'jQuery'},
  35. {'search': 'tipue', 'related': 'Blog'},
  36. {'search': 'tipue', 'related': 'Support'},
  37. {'search': 'tipue search', 'related': 'Demo', 'include': 1},
  38. {'search': 'tipue search', 'related': 'Support'}
  39. ]};
  40. // Internal strings
  41. var tipuesearch_string_1 = 'No title';
  42. var tipuesearch_string_2 = 'Showing results for';
  43. var tipuesearch_string_3 = 'Search instead for';
  44. var tipuesearch_string_4 = '1 result';
  45. var tipuesearch_string_5 = 'results';
  46. var tipuesearch_string_6 = '<';
  47. var tipuesearch_string_7 = '>';
  48. var tipuesearch_string_8 = 'Nothing found.';
  49. var tipuesearch_string_9 = 'Common words are largely ignored.';
  50. var tipuesearch_string_10 = 'Related';
  51. var tipuesearch_string_11 = 'Search should be one character or more.';
  52. var tipuesearch_string_12 = 'Search should be';
  53. var tipuesearch_string_13 = 'characters or more.';
  54. var tipuesearch_string_14 = 'seconds';
  55. var tipuesearch_string_15 = 'Open Image';
  56. var tipuesearch_string_16 = 'Goto Page';
  57. // Internals
  58. // Timer for showTime
  59. var startTimer = new Date().getTime();