Actually make use of the autodiacsens and autocasesens configuration variables. Closes issue #299
This commit is contained in:
parent
6a16c88d22
commit
111dd7a7e5
4 changed files with 16 additions and 8 deletions
|
@ -625,7 +625,7 @@ doc/user/usermanual.html: doc/user/usermanual.xml
|
||||||
mkdir -p doc/user
|
mkdir -p doc/user
|
||||||
test -f doc/user/Makefile || \
|
test -f doc/user/Makefile || \
|
||||||
cp -p $(top_srcdir)/doc/user/Makefile doc/user
|
cp -p $(top_srcdir)/doc/user/Makefile doc/user
|
||||||
$(MAKE) -C doc/user VPATH=../../$(VPATH)/doc/user usermanual.html
|
$(MAKE) -C doc/user VPATH=$(VPATH):$(VPATH)/doc/user usermanual.html
|
||||||
endif
|
endif
|
||||||
|
|
||||||
dist_man1_MANS = doc/man/recoll.1 doc/man/recollq.1 doc/man/recollindex.1
|
dist_man1_MANS = doc/man/recoll.1 doc/man/recollq.1 doc/man/recollindex.1
|
||||||
|
|
|
@ -3484,17 +3484,19 @@ dir:recoll dir:src -dir:utils -dir:common
|
||||||
|
|
||||||
<para>For &RCL; versions 1.18 and later, and <emphasis>when working
|
<para>For &RCL; versions 1.18 and later, and <emphasis>when working
|
||||||
with a raw index</emphasis> (not the default), searches can be
|
with a raw index</emphasis> (not the default), searches can be
|
||||||
made sensitive
|
sensitive to character case and diacritics. How this happens
|
||||||
to character case and diacritics. How this happens is controlled by
|
is controlled by configuration variables and what search data is
|
||||||
configuration variables and what search data is entered.</para>
|
entered.</para>
|
||||||
|
|
||||||
<para>The general default is that searches are insensitive to case
|
<para>The general default is that searches entered without upper-case
|
||||||
and diacritics. An entry of <literal>resume</literal> will match any
|
or accented characters are insensitive to case and diacritics. An
|
||||||
of <literal>Resume</literal>, <literal>RESUME</literal>,
|
entry of <literal>resume</literal> will match any of
|
||||||
|
<literal>Resume</literal>, <literal>RESUME</literal>,
|
||||||
<literal>résumé</literal>, <literal>Résumé</literal> etc.</para>
|
<literal>résumé</literal>, <literal>Résumé</literal> etc.</para>
|
||||||
|
|
||||||
<para>Two configuration variables can automate switching on
|
<para>Two configuration variables can automate switching on
|
||||||
sensitivity:</para>
|
sensitivity (they were documented but actually did nothing until
|
||||||
|
&RCL; 1.22):</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,8 @@ bool SearchData::toNativeQuery(Rcl::Db &db, void *d)
|
||||||
|
|
||||||
db.getConf()->getConfParam("maxTermExpand", &m_maxexp);
|
db.getConf()->getConfParam("maxTermExpand", &m_maxexp);
|
||||||
db.getConf()->getConfParam("maxXapianClauses", &m_maxcl);
|
db.getConf()->getConfParam("maxXapianClauses", &m_maxcl);
|
||||||
|
db.getConf()->getConfParam("autocasesens", &m_autocasesens);
|
||||||
|
db.getConf()->getConfParam("autodiacsens", &m_autodiacsens);
|
||||||
|
|
||||||
// Walk the clause list translating each in turn and building the
|
// Walk the clause list translating each in turn and building the
|
||||||
// Xapian query tree
|
// Xapian query tree
|
||||||
|
|
|
@ -66,6 +66,10 @@ versions.</i></p>
|
||||||
problem.<br/>
|
problem.<br/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>For indexes with case and diacritics sensitivity (not the
|
||||||
|
default), the autocasesens and autodiacsens configuration variable do
|
||||||
|
not work as described in the manual (they have no effect).</li>
|
||||||
|
|
||||||
<li>The GUI must be restarted after changing the path translation
|
<li>The GUI must be restarted after changing the path translation
|
||||||
values (ptrans), even when they are changed from the GUI
|
values (ptrans), even when they are changed from the GUI
|
||||||
preferences.</li>
|
preferences.</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue