Zend Framework

id property of hit objects is incorrectly referenced as document property

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.4
  • Fix Version/s: 1.9.5
  • Component/s: Zend_Search_Lucene
  • Labels:
    None
  • Language:
    English

Description

In section 46.3.2. "Search Results" of the Reference Guide chapter on Zend_Search_Lucene is the following quote:

Each of these has two properties: $hit->document is a document number within the index and $hit->score is a score of the hit in a search result.

$hit->document should be $hit->id.

Activity

Hide
Matthew Turland added a comment -

Patch for the related Reference Guide XML file to correct the cited issue.

Show
Matthew Turland added a comment - Patch for the related Reference Guide XML file to correct the cited issue.
Hide
Matthew Turland added a comment -

Fixed in trunk r18686.

Show
Matthew Turland added a comment - Fixed in trunk r18686.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: