Open bond- opened 9 years ago
sounds like a bug just a sanity test - if you search for same hash from web UI does it work?
Yes, it's the same thing on the web UI as well. Please find the results below
If I use
42826bf03710200044e0bfc8bcbe5d72
in the full text search column, the generated query string is:
+full:42826 +full:bf03710200044e0bfc8bcbe5d72
If the search string is
"42826bf03710200044e0bfc8bcbe5d72"
(quotes inclusive): The query string is:
+full:"42826 bf03710200044e0bfc8bcbe5d72"
This is caused by first non-numeric character in the query which starts with a sequence of numbers; in the example above it's the b
letter in the query.
If I enter query 11111111111111111111111111111111
and replace one of the 1
characters with a letter, say f
, then the query will be always split just before the letter no matter where it is placed in the string.
For example:
111111111111f1111111111111111111
results in +full:111111111111 +full:f1111111111111111111
111111111111111111111111111111f1
results in +full:111111111111111111111111111111 +full:f1
definitely not obvious behaviour, if our customizations caused this, we need to fix, if this is lucene default, we should either report or adjust to be more natural (e.g. break query only on whitespace) @kahatlen any clues?
We don't ship the command line interface anymore however the problem is still valid.
For ex: I ran the following command
and the query output I got is:
If I change this to include quotes, it does the following: Command:
Query output:
I'm expecting that the following hash value 42826bf03710200044e0bfc8bcbe5d72 goes in as a single string