PaperSearchDAO Class Reference
[Search]

DAO class for paper search index. More...

List of all members.

Public Member Functions

 deletePaperKeywords ($paperId, $type=null, $assocId=null)
getPhraseResults (&$conference, $phrase, $publishedFrom=null, $publishedTo=null, $type=null, $limit=500, $cacheHours=24)
 insertKeyword ($keyword)
 insertObject ($paperId, $type, $assocId)
 insertObjectKeyword ($objectId, $keyword, $position)


Detailed Description

DAO class for paper search index.

See also:
PaperSearch

Definition at line 21 of file PaperSearchDAO.inc.php.


Member Function Documentation

PaperSearchDAO.deletePaperKeywords ( paperId,
type = null,
assocId = null 
)

Delete all keywords for a paper object.

Parameters:
$paperId int
$type int optional
$assocId int optional

Definition at line 136 of file PaperSearchDAO.inc.php.

& PaperSearchDAO.getPhraseResults ( &$  conference,
phrase,
publishedFrom = null,
publishedTo = null,
type = null,
limit = 500,
cacheHours = 24 
)

Retrieve the top results for a phrases with the given limit (default 500 results).

Parameters:
$keywordId int
Returns:
array of results (associative arrays)

Definition at line 64 of file PaperSearchDAO.inc.php.

PaperSearchDAO.insertKeyword ( keyword  ) 

Add a word to the keyword list (if it doesn't already exist).

Parameters:
$keyword string
Returns:
int the keyword ID

Definition at line 27 of file PaperSearchDAO.inc.php.

Referenced by insertObjectKeyword().

PaperSearchDAO.insertObject ( paperId,
type,
assocId 
)

Add a paper object to the index (if already exists, indexed keywords are cleared).

Parameters:
$paperId int
$type int
$assocId int
Returns:
int the object ID

Definition at line 168 of file PaperSearchDAO.inc.php.

PaperSearchDAO.insertObjectKeyword ( objectId,
keyword,
position 
)

Index an occurrence of a keyword in an object.s

Parameters:
$objectId int
$keyword string
$position int
Returns:
$keywordId

Definition at line 200 of file PaperSearchDAO.inc.php.

References insertKeyword().


The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7