mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v4.5.2.1704
This commit is contained in:
@@ -101,10 +101,10 @@
|
||||
</ul>
|
||||
</div>
|
||||
<h2>
|
||||
<span class="mw-headline" id="Usage">Usage</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Usage" title="Edit section: Usage" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Usage">Usage</span>
|
||||
</h2>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Running">Running</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Running" title="Edit section: Running" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Running">Running</span>
|
||||
</h3>
|
||||
<p>
|
||||
Full-text search can be reached in any of the following ways:
|
||||
@@ -140,13 +140,13 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Canceling">Canceling</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Canceling" title="Edit section: Canceling" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Canceling">Canceling</span>
|
||||
</h3>
|
||||
<p>
|
||||
Searches can be canceled by pressing the cancel button to the right of the search button
|
||||
</p>
|
||||
<h2>
|
||||
<span class="mw-headline" id="Options">Options</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Options" title="Edit section: Options" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Options">Options</span>
|
||||
</h2>
|
||||
<p>
|
||||
The following options are available:
|
||||
@@ -172,7 +172,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Multiple_wikis">Multiple wikis</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Multiple_wikis" title="Edit section: Multiple_wikis" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Multiple_wikis">Multiple wikis</span>
|
||||
</h3>
|
||||
<p>
|
||||
In addition, for multiple wikis, options can be specified per wiki using the pipe character. For example:
|
||||
@@ -203,7 +203,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<span class="mw-headline" id="Search_engine_types">Search engine types</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Search_engine_types" title="Edit section: Search_engine_types" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Search_engine_types">Search engine types</span>
|
||||
</h2>
|
||||
<p>
|
||||
XOWA supports two types of full-text search engines: XOWA Wikitext and Lucene HTML
|
||||
@@ -280,7 +280,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
<h2>
|
||||
<span class="mw-headline" id="Options_2">Options</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Options_2" title="Edit section: Options_2" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Options_2">Options</span>
|
||||
</h2>
|
||||
<p>
|
||||
Options can be configured at <a href="http://xowa.org/home/wiki/Special:XowaCfg%3Fgrp%3Dxowa.addon.fulltext_search.html" id="xolnki_3" title="Special:XowaCfg?grp=xowa.addon.fulltext search">Special:XowaCfg?grp=xowa.addon.fulltext search</a>
|
||||
@@ -292,13 +292,13 @@
|
||||
<br>
|
||||
</p>
|
||||
<h2>
|
||||
<span class="mw-headline" id="Lucene_search_syntax">Lucene search syntax</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Lucene_search_syntax" title="Edit section: Lucene_search_syntax" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Lucene_search_syntax">Lucene search syntax</span>
|
||||
</h2>
|
||||
<p>
|
||||
The best reference for Lucene syntax is probably <a href="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html" rel="nofollow" class="external text">the lucene search page</a>. The following is an edited version of that page
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Fields">Fields</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Fields" title="Edit section: Fields" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Fields">Fields</span>
|
||||
</h3>
|
||||
<p>
|
||||
XOWA uses one field: body.
|
||||
@@ -310,7 +310,7 @@
|
||||
In addition, XOWA uses three other fields: page_id, title, and page_score. These are included for system purposes only.
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Wildcards">Wildcards</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Wildcards" title="Edit section: Wildcards" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Wildcards">Wildcards</span>
|
||||
</h3>
|
||||
<p>
|
||||
Lucene supports single and multiple character wildcard searches within single terms (not within phrase queries).
|
||||
@@ -326,7 +326,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Fuzzy_Searches">Fuzzy Searches</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Fuzzy_Searches" title="Edit section: Fuzzy_Searches" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Fuzzy_Searches">Fuzzy Searches</span>
|
||||
</h3>
|
||||
<p>
|
||||
Lucene supports fuzzy searches based on the Levenshtein Distance, or Edit Distance algorithm. To do a fuzzy search use the tilde, "~", symbol at the end of a Single word Term. For example to search for a term similar in spelling to "roam" use the fuzzy search: <code>roam~</code>
|
||||
@@ -341,7 +341,7 @@
|
||||
The default that is used if the parameter is not given is 0.5.
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Proximity_Searches">Proximity Searches</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Proximity_Searches" title="Edit section: Proximity_Searches" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Proximity_Searches">Proximity Searches</span>
|
||||
</h3>
|
||||
<p>
|
||||
Lucene supports finding words are a within a specific distance away. To do a proximity search use the tilde, "~", symbol at the end of a Phrase. For example to search for a "apache" and "jakarta" within 10 words of each other in a document use the search:
|
||||
@@ -350,7 +350,7 @@
|
||||
<code>"jakarta apache"~10</code>
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Boosting_a_Term">Boosting a Term</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Boosting_a_Term" title="Edit section: Boosting_a_Term" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Boosting_a_Term">Boosting a Term</span>
|
||||
</h3>
|
||||
<p>
|
||||
Lucene provides the relevance level of matching documents based on the terms found. To boost a term use the caret, "^", symbol with a boost factor (a number) at the end of the term you are searching. The higher the boost factor, the more relevant the term will be.
|
||||
@@ -377,13 +377,13 @@
|
||||
By default, the boost factor is 1. Although the boost factor must be positive, it can be less than 1 (e.g. 0.2)
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Boolean_Operators">Boolean Operators</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Boolean_Operators" title="Edit section: Boolean_Operators" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Boolean_Operators">Boolean Operators</span>
|
||||
</h3>
|
||||
<p>
|
||||
Boolean operators allow terms to be combined through logic operators. Lucene supports AND, "+", OR, NOT and "-" as Boolean operators(Note: Boolean operators must be ALL CAPS).
|
||||
</p>
|
||||
<h4>
|
||||
<span class="mw-headline" id="OR">OR</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=OR" title="Edit section: OR" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="OR">OR</span>
|
||||
</h4>
|
||||
<p>
|
||||
The OR operator is the default conjunction operator. This means that if there is no Boolean operator between two terms, the OR operator is used. The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets. The symbol || can be used in place of the word OR.
|
||||
@@ -404,7 +404,7 @@
|
||||
<br>
|
||||
</p>
|
||||
<h4>
|
||||
<span class="mw-headline" id="AND">AND</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=AND" title="Edit section: AND" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="AND">AND</span>
|
||||
</h4>
|
||||
<p>
|
||||
The AND operator matches documents where both terms exist anywhere in the text of a single document. This is equivalent to an intersection using sets. The symbol && can be used in place of the word AND.
|
||||
@@ -416,7 +416,7 @@
|
||||
<code>"jakarta apache" AND "Apache Lucene"</code>
|
||||
</p>
|
||||
<h4>
|
||||
<span class="mw-headline" id=".2B">+</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=.2B" title="Edit section: .2B" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id=".2B">+</span>
|
||||
</h4>
|
||||
<p>
|
||||
The "+" or required operator requires that the term after the "+" symbol exist somewhere in a the field of a single document.
|
||||
@@ -428,7 +428,7 @@
|
||||
<code>+jakarta lucene</code>
|
||||
</p>
|
||||
<h4>
|
||||
<span class="mw-headline" id="NOT">NOT</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=NOT" title="Edit section: NOT" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="NOT">NOT</span>
|
||||
</h4>
|
||||
<p>
|
||||
The NOT operator excludes documents that contain the term after NOT. This is equivalent to a difference using sets. The symbol ! can be used in place of the word NOT.
|
||||
@@ -446,7 +446,7 @@
|
||||
<code>NOT "jakarta apache"</code>
|
||||
</p>
|
||||
<h4>
|
||||
<span class="mw-headline" id="-">-</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=-" title="Edit section: -" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="-">-</span>
|
||||
</h4>
|
||||
<p>
|
||||
The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.
|
||||
@@ -458,7 +458,7 @@
|
||||
<code>"jakarta apache" -"Apache Lucene"</code>
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Grouping">Grouping</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Grouping" title="Edit section: Grouping" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Grouping">Grouping</span>
|
||||
</h3>
|
||||
<p>
|
||||
Lucene supports using parentheses to group clauses to form sub queries. This can be very useful if you want to control the boolean logic for a query.
|
||||
@@ -473,7 +473,7 @@
|
||||
This eliminates any confusion and makes sure you that website must exist and either term jakarta or apache may exist. Field Grouping
|
||||
</p>
|
||||
<h3>
|
||||
<span class="mw-headline" id="Escaping_Special_Characters">Escaping Special Characters</span> <span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/wiki/App/Full-text_search?action=edit&section_key=Escaping_Special_Characters" title="Edit section: Escaping_Special_Characters" class="xowa-hover-off">edit</a><span class="mw-editsection-bracket">]</span></span>
|
||||
<span class="mw-headline" id="Escaping_Special_Characters">Escaping Special Characters</span>
|
||||
</h3>
|
||||
<p>
|
||||
Lucene supports escaping special characters that are part of the query syntax. The current list special characters are
|
||||
|
||||
Reference in New Issue
Block a user