Google custom search engine and partial matching - substring

I plugged in the Google Custom Search Engine to my MediaWiki site. It seems to work fine. However, how do I also make it search for results using partial matching? For example: when I searched for 'loft', it returned only the pages containing the whole word 'loft', but I was also looking for the pages containing 'loft' as a substring of some words, like 'createloft', 'deleteloft', 'loftstudy', etc.

Google doesn't provide such advanced search features. If you need things like per-namespace search, substring matching, regex search etc. use CirrusSearch, which is based on ElasticSearch.

Related

Does the "site:" keyword and other "Advanced Search Options" apply to Bing Custom Search API?

We are using Bing Custom Search, https://learn.microsoft.com/en-us/bing/search-apis/bing-custom-search/reference/endpoints, and passing a site: filter along with the search. The current filter goes something like this:
https://api.bing.microsoft.com/v7.0/custom/search?q=searchTerm site:(support.somesite.com/en-us/productName)-(/productName/2/ OR /productName/3/)
My understanding is this will return results for "searchTerm" in the site support.somesite.com/en-us/productName and exclude sites (urls) containing /productName/2/ or /productName/3/.
The idea is we have a search filter where customers can select specific versions of our product support documentation to search. Selecting the filter excludes other versions of product from search results (i.e. versions /productName/2/ and /productName/3/ are excluded from search results).
However, in practice we are getting search results that contain urls with the versions we hope to exclude.
What is unclear from the documentation - do these https://support.microsoft.com/en-us/topic/advanced-search-options-b92e25f1-0085-4271-bdf9-14aaea720930 "advanced search options" work with the site: keyword as we are attempting to use them above? Or do they only work with the search query?
Is there a good way to exclude particular url paths from the search?
No, Bing Custom Web Search API does not fully support Advanced Search Operators (keywords), which includes the "site:" keyword.
MS Support pointed out that there is a difference between what is supported in the q= parameter between Bing Web Search API v7 (not used in this question) and Bing Custom Web Search API v7 (used in this question).
Web Search API v7 documentation (left in image)
Custom Web Search API v7 documentation (right in image)

Which WPML method of string translation should I use?

I am trying to translate my WordPress website (built using Brooklyn theme) but I do not know which method to use to translate my strings. At first, the strings weren't showing up in the string translation search but then I learned that I had to add more code.
My first question is, do I have to go through every single page and custom CMS entry that I use to update content and wrap everything in code, or is there a way to do that automatically?
Secondly, I use Brooklyn theme but their support team is so slow so I wanted to ask if there was a standard way to find the theme's text-domain to include in the code (if I need it).
Thirdly, I know the options I have with which method to use to translate strings (manual registration or GetText) but I haven't found any explanation relating to where to put this code and how to implement it (even the official documentation gives you the code but doesn't explain what to do with it and I'm not a PHP expert!)
I'm using all the latest versions of WPML and the multilingual CMS.
http://www.expedition-polaris.com
Yes, you'll have to wrap all strings that you want translated with one of the localization functions ( https://codex.wordpress.org/L10n ) : __(), _e(), _n(), etc.
If you have already purchased the Brooklyn theme, then grep through the source for either _e( or __(, to find out the text-domain., or if you run the scan function via the String Translations admin page, the text-domain should be listed for the theme.

google custom search engine control search results

My question is simple, how do I make a certain page be find-able by a specific keyword.
cse it's working fine it just don't manage to find everything he supposed to.
Google custom works like google search, manipulating results may not be possible, however, check out the synonyms tab in google.com/cse.
Say your users search for MBA you can configure it to show results for Master of Business Administration

Is there some search engine SDK or API that I can use for local search?

I have many documents located on my disk and I want to build a search engine to search through them.
I know Google Desktop Search or Bing Desktop Search could do that. But I want to know if there's some SDK/API to do that so I can do some customization.
What I want to achieve, is that I can provide a document and the local search engine will return all the documents similar to it.
In general there are Lucene and Solr that can help to solve search related needs in Java (I guess you are using Java based on the tag GWT).
But I don't know how to do a search by example with these tools. I think you have to extract the relevant information of the document to construct a search based on it.

google text search vs. metadata search

I'm very interested in search engines.
Today in a talk I heard that google performs a text search, while more complex engines could rely on the use of metadata, which is apparently not so used by google.
Which is the difference between text search and metadata search?
Could you provide some links where I can go deeper on this subject?
Metadata is 100% text.
The reason why Google doesn't use it is because people tend to lie about their content (not automatically on purpose.)
Now, what Google doesn't use is the Keywords meta data tag (although they may be checking it out to see whether you're a liar...) They do use the other meta tags.
I just wrote a long list of meta tags supported by many systems. I still need to add many more, but out of those that are there the og:image and description and some others are very useful.
http://snapwebsites.org/implementation/feature-requirements/layout-feature-core/meta-tags-and-links-supported-core