I want to be able to handle fuzzy search, as well as synonyms at the same time.
I tried it in a several ways, but I cannot get it working.
I have these values in my index:
white
black
light
dark
and this synonym rules:
white,light
black,dark
If I perform the query queryType=full&search=light or queryType=full&search=white, it always returns both values, light and white.
So synonyms are working.
If I perform the query queryType=full&search=light~1, then only light will be returned. But where is white?
Is the combination of fuzzy search and synonyms not possible yet, or am I doing something wrong?
Synonym expansions do not apply to wildcard search terms; prefix, fuzzy, and regex terms aren't expanded.
If you need to do a single query that applies synonym expansion and wildcard, regex, or fuzzy searches, you can combine the queries using the OR syntax.
For example, to combine synonyms with fuzzy search you would need to have query like this:
search=light~1|light
or
queryType=full&search=light OR light~1
if you're using Lucene query syntax
Related
I would like to ask if anyone has a problem with searching for unsafe/reserved characters? More specificaly if the string starts with, or contains only special characters, in this case #. I know it is edge case, but it seems like weird behavior. Search string is encoded in query, so it will get to the search, I know the name containing only these characters is edge case, but i am curious if it is intended behaviour or i am doing something wrong
this is the part of url containing search query ?searchMode=all&search=%23%23%23
I have a filed in an Azure Search index that contains URL's. I'm and trying to search the field for any URL's that contain a question mark (?). When I use just the question mark for the search text, no results are returned. Is it possible to search for just the question mark?
Did you read the following documentations?
Wildcard search
Simple query
Both states that you must excape special characters with backslash. When you do wildcard search
You cannot use a * or ? symbol as the first character of a search. No
text analysis is performed on wildcard search queries.
I think this will not apply if you escape them.
In other editors like sublime, if I search for usermodel it will match the path of models/users.ex, however in CtrlP if I do the same query it will fail. I have to remember to search the path modeluser to make the match.
Is there a way to tweak this so that usermodel or user model would match? I've read the docs and don't see a way but i'm new to it and am not sure if i'm just missing something.
AFAIK CtrlP can't do it but you can try writing your custom matcher (see an example here).
There is also Unite with similar functionality which allows to separate multiple patterns with space to narrow down the candidates. This way user model will match anything containing these two words in any order.
I ended up switching to emacs (spacemacs) with evil mode (gasp) for the improved Elixir support and i'm able to fuzzy search out of order with Helm.
There are many words which can have a hyphen, a space or be a full word. For example:
Wifi
Wi-fi
Wi fi
I am attempting to figure out if there is some kind of wildcard search that will allow me to capture all three as a result when I do a search in Jira. Using * search (for example, searching "wi*fi" returns either Wi-fi or Wi fi but wont return the full version Wifi
Is there a simple way I can get all three variants of Wifi to return using a simple wildcard search?
From reading the Performing Text Searches documentation it says:
JIRA does NOT support leading wildcards or Wildcards in phrases currently
However it later says:
To perform a single character wildcard search use the "?" symbol.
To perform a multiple character wildcard search use the "*" symbol.
So as to why your search is not working I am unsure.
However they do recommend installing the ScriptRunner plugin which beefs up the JQL and allows you to use a regex:
issueFunction in issueFieldMatch("project = JRA", "description", "ABC\\d{4}")
Which may be of interest to you.
The simplest option is to combine multiple searches here:
(fieldname ~ "wi*fi" or fieldname ~ "wifi") will return the desired results.
I am searching a codebase indexed by OpenGrok, the -a option has been enabled to allow the first character of a search term to be a wildcard. I would like to find all occurrences of method foo that take some string parameter (foo("") with one or more characters in the string) and the method is within 5 words of variable bar.
With the breakup of words provided by the standard tokenizer I can use +full:"foo bar"~5 to get all foo( near bar, but excluding the parameterless methods is a problem because (" is indexed as two whitespace characters, so for example foo("jar") seems to match foo AND \ \ AND jar AND \ \". The syntax doesn't look like it supports a search for this combination (even without the wildcard string rather than "jar") with a ""~5 proximity search. Any ideas on how to achieve all or part of this, given that changing the tokenizer is not an option at the moment?