=head1 ̾Á° (NAME)
Search::Namazu - Namazu ¸¡º÷¥â¥¸¥å¡¼¥ë
=head1 ½ñ¼° (SYNOPSIS)
use Search::Namazu;
@hlists = Search::Namazu::Search(index => '/usr/local/namazu/index',
query => 'foo');
foreach my $hlist (@hlists) {
print ($hlist->score, $hlist->uri, $hlist->date, $hlist->rank);
}
=head1 ÀâÌÀ (DESCRIPTION)
¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢Namzu ¥é¥¤¥Ö¥é¥ê¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç¤¹¡£
Namazu ¤ÏÁ´Ê¸¸¡º÷¥·¥¹¥Æ¥à¤Î°ì¼ï¤Ç¡¢
¤è¤êÆþ¼ê¤Ç¤­¤Þ¤¹¡£
=head1 ³µÍ× (OVERVIEW)
¸¡º÷ÍÑ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤È¤·¤Æ¡¢Search::Namazu::Search ¤È¤¤¤¦´Ø¿ô¤¬
ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤Î´Ø¿ô¤ò¸Æ¤Ö¤È¡¢°ú¿ô¤Î±þ¤¸¤¿¸¡º÷¤¬¹Ô¤Ê¤ï¤ì¡¢·ë²Ì¤È¤·¤Æ
Search::Namazu::Result ¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó¤òÊÖ¤·¤Þ¤¹¡£
Search::Namazu::Result ¥ª¥Ö¥¸¥§¥¯¥È¤Ï¸Ä¡¹¤Î¸¡º÷·ë²Ì¤È¤·¤Æ¡¢
¥¹¥³¥¢, URI, ÆüÉÕ, ¥é¥ó¥¯¤òÊÝ»ý¤·¤Æ¤¤¤Þ¤¹¡£
=head2 Search::Namazu::Search
´Ø¿ô Search::Namazu::Search ¤Ï°ú¿ô¤È¤·¤Æ¥Ï¥Ã¥·¥å¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¤ò¤È¤ê¤Þ¤¹¡£
»ØÄê²Äǽ¤Ê¥­¡¼¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
=head3 index
¥¤¥ó¥Ç¥Ã¥¯¥¹¥Õ¥¡¥¤¥ë¤Î¸ºß¤¹¤ë¥Ñ¥¹¤ò»ØÄꤷ¤Þ¤¹¡£Ã±ÆȤΥ¤¥ó¥Ç¥Ã¥¯¥¹¤ò
»²¾È¤¹¤ë¾ì¹ç¤Ïʸ»úÎó¤ò¥¹¥«¥éÃͤò¤·¤ÆÍ¿¤¨¤Þ¤¹¤¬¡¢Ê£¿ô¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò»ØÄꤹ¤ë
¾ì¹ç¤Ë¤ÏÇÛÎó¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¤ò»ØÄꤷ¤Þ¤¹¡£
°Ê²¼¤ÎÎã¤Ç¤Ï¡¢/var/www/index/site1 ¤È /var/www/index/site1 ¤Î2¤Ä¤Î
¥¤¥ó¥Ç¥Ã¥¯¥¹¤«¤é¡¢Ê¸»úÎó 'foo' ¤ò¸¡º÷¤·¤Æ¤¤¤Þ¤¹¡£
@result = Search::Namazu::Search(
index => ['/var/www/index/site1', '/var/www/index/site2'],
query => 'foo'
);
=head3 query
¸¡º÷¼°¤òʸ»úÎó¤È¤·¤Æ»ØÄꤷ¤Þ¤¹¡£¼°¤Ï namazu ¥³¥Þ¥ó¥É¤ÇÍøÍѤǤ­¤ë
¤â¤Î¤ÈƱ¤¸¤Ç¤¹¡£
=head3 sortMethod
¸¡º÷·ë²Ì¤ÎʤÙÊý¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄê²Äǽ¤Ê°ú¿ô¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
=over 4
=item B<NMZ_SORTBYDATE>
ÆüÉÕ½ç¤Ëʤ٤ë
=item B<NMZ_SORTBYSCORE>
¥¹¥³¥¢½ç¤Ëʤ٤ë
=item B<NMZ_SORTBYFIELD>
¥Õ¥£¡¼¥ë¥É½ç¤Ëʤ٤ë
=back
¾Êά¤·¤¿¾ì¹ç¤Ï NMZ_SORTBYDATE ¤¬»ØÄꤵ¤ì¤¿¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£
=head3 sortOrder
¸¡º÷·ë²Ì¤Îʤӽç¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄê²Äǽ¤Ê°ú¿ô¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
=over 4
=item B<NMZ_DESCENDSORT>
¹ß½ç
=item B<NMZ_ASCENDSORT>
¾º½ç
=back
¾Êά¤·¤¿¾ì¹ç¤Ï NMZ_DESCENDSORT ¤¬»ØÄꤵ¤ì¤¿¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£
=head3 lang
¸À¸ì¤ò»ØÄꤷ¤Þ¤¹¡£
ÆüËܸìʸ¾Ï¤òÂоݤ˸¡º÷¤ò¹Ô¤Ê¤¦¾ì¹ç¤Ï¡¢'ja' ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
=head2 Search::Namazu::Result
Search::Namazu::Result ¤Ï¸¡º÷·ë²Ì¤òÊÝ»ý¤¹¤ë¤¿¤á¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¹¡£
¤³¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï°Ê²¼¤Î¥á¥½¥Ã¥É¤¬¤¢¤ê¤Þ¤¹¡£
=head3 score
¥¹¥³¥¢¤òÊÖ¤·¤Þ¤¹¡£
=head3 uri
URI ¤òÊÖ¤·¤Þ¤¹¡£
=head3 date
ÆüÉÕ¤òÊÖ¤·¤Þ¤¹¡£
=head3 rank
¥é¥ó¥¯¤òÊÖ¤·¤Þ¤¹¡£
=head3 summary
¥µ¥Þ¥ê¤òÊÖ¤·¤Þ¤¹¡£
=head3 title
¥¿¥¤¥È¥ë¤òÊÖ¤·¤Þ¤¹¡£
=head1 Ãøºî¸¢ (COPYRIGHT)
Copyright 1999,2000,2001,2002 NOKUBI Takatsugu All rights reserved.
This is free software with ABSOLUTELY NO WARRANTY.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA