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
|
||||
test -f doc/user/Makefile || \
|
||||
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
|
||||
|
||||
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
|
||||
with a raw index</emphasis> (not the default), searches can be
|
||||
made sensitive
|
||||
to character case and diacritics. How this happens is controlled by
|
||||
configuration variables and what search data is entered.</para>
|
||||
sensitive to character case and diacritics. How this happens
|
||||
is controlled by configuration variables and what search data is
|
||||
entered.</para>
|
||||
|
||||
<para>The general default is that searches are insensitive to case
|
||||
and diacritics. An entry of <literal>resume</literal> will match any
|
||||
of <literal>Resume</literal>, <literal>RESUME</literal>,
|
||||
<para>The general default is that searches entered without upper-case
|
||||
or accented characters are insensitive to case and diacritics. An
|
||||
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>
|
||||
|
||||
<para>Two configuration variables can automate switching on
|
||||
sensitivity:</para>
|
||||
sensitivity (they were documented but actually did nothing until
|
||||
&RCL; 1.22):</para>
|
||||
|
||||
<variablelist>
|
||||
|
||||
|
|
|
@ -168,6 +168,8 @@ bool SearchData::toNativeQuery(Rcl::Db &db, void *d)
|
|||
|
||||
db.getConf()->getConfParam("maxTermExpand", &m_maxexp);
|
||||
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
|
||||
// Xapian query tree
|
||||
|
|
|
@ -66,6 +66,10 @@ versions.</i></p>
|
|||
problem.<br/>
|
||||
</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
|
||||
values (ptrans), even when they are changed from the GUI
|
||||
preferences.</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue