API:EPrints/Index: Difference between revisions
m adding Category:Rubbish, page was emptied 9 years ago and has been untouched since |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category: | <!-- Pod2Wiki=_preamble_ | ||
This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | |||
-->{{API}}{{Pod2Wiki}}{{API:Source|file=EPrints/Index.pm|package_name=EPrints::Index}}[[Category:API|INDEX]]<div><!-- Edit below this comment --> | |||
<!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name --> | |||
==NAME== | |||
'''EPrints::Index''' - Methods for indexing objects for later searching. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=head_description --> | |||
==DESCRIPTION== | |||
This module contains methods used to add and remove information from the free-text search indexes. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=head_methods --> | |||
==METHODS== | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_remove --> | |||
===remove=== | |||
$ok = EPrints::Index::remove( $session, $dataset, $objectid, $fieldids ) | |||
Remove all indexes to the fields {{API:PodLink|file=$fieldids|package_name=$fieldids|section=|text=$fieldids}} within the specified <tt>objectid</tt> that is from the <tt>$dataset</tt>. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_remove_all --> | |||
===remove_all=== | |||
$ok = EPrints::Index::remove_all( $session, $dataset, $objectid ) | |||
Remove all indexes to the specified <tt>$objectid</tt> part of the <tt>$dataset</tt>. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_purge_index --> | |||
===purge_index=== | |||
EPrints::Index::purge_index( $session, $dataset ) | |||
Remove all the current index information for the given <tt>$dataset</tt>. Only really useful if used in conjunction with rebuilding the indexes. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_add --> | |||
===add=== | |||
$ok = EPrints::Index::add( $session, $dataset, $objectid, $fieldid, $value ) | |||
Add indexes to the <tt>fieldid</tt> in the specified <tt>$objectid</tt>. The index keys will be taken from <tt>$value</tt>. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_update_ordervalues --> | |||
===update_ordervalues=== | |||
EPrints::Index::update_ordervalues( $session, $dataset, $data, $changed ) | |||
Update the order values for an object. <tt>$data</tt> is a structure returned by: | |||
$dataobj->get_data | |||
<tt>$changed</tt> is a hash of changed fields. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_insert_ordervalues --> | |||
===insert_ordervalues=== | |||
EPrints::Index::insert_ordervalues( $session, $dataset, $data ) | |||
Create the order values for an object. <tt>$data</tt> is a structure returned by: | |||
$dataobj->get_data | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_delete_ordervalues --> | |||
===delete_ordervalues=== | |||
EPrints::Index::delete_ordervalues( $session, $dataset, $id ) | |||
Remove the ordervalues for item <tt>$id</tt> from the ordervalues table of <tt>$dataset</tt>. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_$pidfilepath --> | |||
===$pidfilepath=== | |||
$pidfilepath = EPrints::Index::pidfile | |||
Return the filepath for the indexer PID file. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_$tickfilepath --> | |||
===$tickfilepath=== | |||
$tickfilepath = EPrints::Index::tickfile | |||
Return the filepath for the indexer tick file. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_$logfilepath --> | |||
===$logfilepath=== | |||
$logfilepath = EPrints::Index::logfile | |||
Return the filepath for the indexer log file. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_$binfilepath --> | |||
===$binfilepath=== | |||
$binfilepath = EPrints::Index::binfile | |||
Return the filepath for the indexer bin script file. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_$suicidefilepath --> | |||
===$suicidefilepath=== | |||
$suicidefilepath = EPrints::Index::suicidefile | |||
Return the filepath for the indexer suicide file. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=item_indexlog --> | |||
===indexlog=== | |||
EPrints::Index::indexlog( $txt ) | |||
Print out and index log line with <tt>$txt</tt> to the <tt>STDERR</tt>. | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=head_copyright --> | |||
==COPYRIGHT== | |||
{{API:Copyright}} | |||
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce; padding: 0em 1em 0em 1em; font-size: 80%; '> | |||
<span style='display:none'>User Comments</span> | |||
<!-- Edit below this comment --> | |||
<!-- Pod2Wiki= --> | |||
</div> | |||
<!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment --> | |||
Latest revision as of 01:31, 10 January 2022
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
NAME
EPrints::Index - Methods for indexing objects for later searching.
DESCRIPTION
This module contains methods used to add and remove information from the free-text search indexes.
METHODS
remove
$ok = EPrints::Index::remove( $session, $dataset, $objectid, $fieldids )
Remove all indexes to the fields $fieldids within the specified objectid that is from the $dataset.
remove_all
$ok = EPrints::Index::remove_all( $session, $dataset, $objectid )
Remove all indexes to the specified $objectid part of the $dataset.
purge_index
EPrints::Index::purge_index( $session, $dataset )
Remove all the current index information for the given $dataset. Only really useful if used in conjunction with rebuilding the indexes.
add
$ok = EPrints::Index::add( $session, $dataset, $objectid, $fieldid, $value )
Add indexes to the fieldid in the specified $objectid. The index keys will be taken from $value.
update_ordervalues
EPrints::Index::update_ordervalues( $session, $dataset, $data, $changed )
Update the order values for an object. $data is a structure returned by:
$dataobj->get_data
$changed is a hash of changed fields.
insert_ordervalues
EPrints::Index::insert_ordervalues( $session, $dataset, $data )
Create the order values for an object. $data is a structure returned by:
$dataobj->get_data
delete_ordervalues
EPrints::Index::delete_ordervalues( $session, $dataset, $id )
Remove the ordervalues for item $id from the ordervalues table of $dataset.
$pidfilepath
$pidfilepath = EPrints::Index::pidfile
Return the filepath for the indexer PID file.
$tickfilepath
$tickfilepath = EPrints::Index::tickfile
Return the filepath for the indexer tick file.
$logfilepath
$logfilepath = EPrints::Index::logfile
Return the filepath for the indexer log file.
$binfilepath
$binfilepath = EPrints::Index::binfile
Return the filepath for the indexer bin script file.
$suicidefilepath
$suicidefilepath = EPrints::Index::suicidefile
Return the filepath for the indexer suicide file.
indexlog
EPrints::Index::indexlog( $txt )
Print out and index log line with $txt to the STDERR.
COPYRIGHT
© Copyright 2000-2024 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
LICENSE
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.