lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/xdocs queryparsersyntax.xml
Date Tue, 14 Sep 2004 22:19:53 GMT
dnaber      2004/09/14 15:19:53

  Modified:    docs     queryparsersyntax.html
               .        CHANGES.txt
               xdocs    queryparsersyntax.xml
  Log:
  document Christoph's improvements to FuzzyQuery
  
  Revision  Changes    Path
  1.28      +22 -1     jakarta-lucene/docs/queryparsersyntax.html
  
  Index: queryparsersyntax.html
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/docs/queryparsersyntax.html,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- queryparsersyntax.html	18 May 2004 13:32:00 -0000	1.27
  +++ queryparsersyntax.html	14 Sep 2004 22:19:53 -0000	1.28
  @@ -385,7 +385,28 @@
       </tr>
       </table>
       </div>
  -                                                <p>This search will find terms like
foam and roams</p>
  +                                                <p>This search will find terms like
foam and roams.</p>
  +                                                <p>Starting with Lucene 1.9 an additional
(optional) parameter can specify the required similarity. The value is between 0 and 1, with
a value closer to 1 only terms with a higher similarity will be matched. For example:</p>
  +                                                    <div align="left">
  +    <table cellspacing="4" cellpadding="0" border="0">
  +    <tr>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    <tr>
  +      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#ffffff"><pre>roam~0.8</pre></td>
  +      <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    <tr>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1"
vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +    </tr>
  +    </table>
  +    </div>
  +                                                <p>The default that is used if the
parameter is not given is 0.5.</p>
                               </blockquote>
         </td></tr>
         <tr><td><br/></td></tr>
  
  
  
  1.107     +7 -2      jakarta-lucene/CHANGES.txt
  
  Index: CHANGES.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/CHANGES.txt,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- CHANGES.txt	5 Sep 2004 22:09:26 -0000	1.106
  +++ CHANGES.txt	14 Sep 2004 22:19:53 -0000	1.107
  @@ -11,7 +11,12 @@
   
    2. FuzzyQuery now takes an additional parameter that specifies the
       minimum similarity that is required for a term to match the query.
  -    Note that this isn't supported by QueryParser yet. (Daniel Naber)
  +    The QueryParser syntax for this is term~x, where x is a floating 
  +    point number between 0 and 1 (a bigger number means that a higher
  +    similarity is required). Furthermore, a prefix can be specified
  +    for FuzzyQuerys so that only those terms are considered similar that 
  +    start with this prefix. This can speed up FuzzyQuery greatly.
  +    (Daniel Naber, Christoph Goller)
     
    3. The Russian and the German analyzers have been moved to Sandbox.
       Also, the WordlistLoader class has been moved one level up in the
  
  
  
  1.7       +5 -1      jakarta-lucene/xdocs/queryparsersyntax.xml
  
  Index: queryparsersyntax.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/xdocs/queryparsersyntax.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- queryparsersyntax.xml	3 Oct 2003 03:01:05 -0000	1.6
  +++ queryparsersyntax.xml	14 Sep 2004 22:19:53 -0000	1.7
  @@ -88,7 +88,11 @@
           <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:
</p>
   
           <source>roam~</source>
  -        <p>This search will find terms like foam and roams</p>
  +        <p>This search will find terms like foam and roams.</p>
  +
  +        <p>Starting with Lucene 1.9 an additional (optional) parameter can specify
the required similarity. The value is between 0 and 1, with a value closer to 1 only terms
with a higher similarity will be matched. For example:</p>
  +        <source>roam~0.8</source>
  +        <p>The default that is used if the parameter is not given is 0.5.</p>
           </subsection>
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message