You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "FP (Jira)" <ji...@apache.org> on 2020/09/15 07:30:00 UTC
[jira] [Created] (JSPWIKI-1133) Can't search for: a
FP created JSPWIKI-1133:
---------------------------
Summary: Can't search for: a
Key: JSPWIKI-1133
URL: https://issues.apache.org/jira/browse/JSPWIKI-1133
Project: JSPWiki
Issue Type: Bug
Components: Search
Affects Versions: 2.11.0-M7
Environment: * Debian 10
* Tomcat 9: 9.0.31-1~deb10u2
* OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
* JSPWiki 2.11.0-M7
Reporter: FP
There are no search results when a user searches for »a« (just the single letter, without »«). Every other single letter, e.g. »b«, … works fine.
Page count: > 5000 with lots of pages containing the letter »a«.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
Re: [jira] [Created] (JSPWIKI-1133) Can't search for: a
Posted by Murray Altheim <mu...@altheim.com>.
That's not a bug, as 'a' is one of the search engine's "stop words":
"a", "an", "and", "are", "as", "at", "be", "but", "by",
"for", "if", "in", "into", "is", "it",
"no", "not", "of", "on", "or", "such",
"that", "the", "their", "then", "there", "these",
"they", "this", "to", "was", "will", "with"
https://stackoverflow.com/questions/17527741/what-is-the-default-list-of-stopwords-used-in-lucenes-stopfilter
Any word in the Lucene stop word list can't be searched on, as it is (by
default) not indexed. So you *can* search on a stop word but the engine
has not indexed it. Lucene is the engine behind JSPWiki, Solr,
ElasticSearch and most web sites.
Cheers,
Murray
On 15/09/20 7:30 pm, FP (Jira) wrote:
> FP created JSPWIKI-1133:
> ---------------------------
>
> Summary: Can't search for: a
> Key: JSPWIKI-1133
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1133
> Project: JSPWiki
> Issue Type: Bug
> Components: Search
> Affects Versions: 2.11.0-M7
> Environment: * Debian 10
> * Tomcat 9: 9.0.31-1~deb10u2
> * OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
> * JSPWiki 2.11.0-M7
> Reporter: FP
>
>
> There are no search results when a user searches for »a« (just the single letter, without »«). Every other single letter, e.g. »b«, … works fine.
>
> Page count: > 5000 with lots of pages containing the letter »a«.
...........................................................................
Murray Altheim <murray18 at altheim dot com> = = ===
http://www.altheim.com/murray/ === ===
= = ===
In the evening
The rice leaves in the garden
Rustle in the autumn wind
That blows through my reed hut.
-- Minamoto no Tsunenobu