lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SpellCheckComponent" by Uri Boness
Date Wed, 09 Sep 2009 00:36:28 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by Uri Boness:
http://wiki.apache.org/solr/SpellCheckComponent

The comment on the change is:
updated the extendedResults example to reflect the new result format

------------------------------------------------------------------------------
  
  == Extended Results ==
  
- The spellcheck.extendedResults=true parameter provides frequency of each original term in
the index (origFreq) as well as the frequency of each suggestion in the index (frequency)
+ The spellcheck.extendedResults=true parameter provides frequency of each original term in
the index (origFreq) as well as the frequency of each suggestion in the index (frequency).
+ 
+ '''''NOTE''': This result format differs from the non-extended one as the returned suggestions
is actually an array of lists, where each list holds the suggested term and its frequency.''
<!> ["Solr1.4"]
  
  {{{
  http://localhost:8983/solr/spellCheckCompRH?q=*:*&spellcheck.q=hell+ultrashar&spellcheck=true&spellcheck.extendedResults=true
@@ -201, +203 @@

  			<int name="startOffset">0</int>
  			<int name="endOffset">4</int>
  			<int name="origFreq">0</int>
- 			<lst name="suggestion">
+ 			<arr name="suggestion">
+                                 <lst>
- 				<int name="frequency">1</int>
+ 				        <int name="frequency">1</int>
- 				<str name="word">dell</str>
+ 				        <str name="word">dell</str>
- 			</lst>
+                                 </lst>
+ 			</arr>
  		</lst>
  		<lst name="ultrashar">
  			<int name="numFound">1</int>
  			<int name="startOffset">5</int>
  			<int name="endOffset">14</int>
  			<int name="origFreq">0</int>
- 			<lst name="suggestion">
+ 			<arr name="suggestion">
+                                 <lst>
- 				<int name="frequency">1</int>
+ 				        <int name="frequency">1</int>
- 				<str name="word">ultrasharp</str>
+ 				        <str name="word">ultrasharp</str>
- 			</lst>
+                                 </lst>
+ 			</arr>
  		</lst>
  		<bool name="correctlySpelled">false</bool>
  	</lst>

Mime
View raw message