Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

plucene::index::reader(3pm) [debian man page]

Plucene::Index::Reader(3pm)				User Contributed Perl Documentation			       Plucene::Index::Reader(3pm)

NAME
Plucene::Index::Reader - Abstract class for accessing an index DESCRIPTION
IndexReader is an abstract class, providing an interface for accessing an index. Search of an index is done entirely through this abstract interface, so that any subclass which implements it is searchable. Concrete subclasses of IndexReader are usually constructed with a call to the static method "open". For efficiency, in this API documents are often referred to via document numbers, non-negative integers which each name a unique document in the index. These document numbers are ephemeral--they may change as documents are added to and deleted from an index. Clients should thus not rely on a given document having the same number between sessions. METHODS
new my $reader = Plucene::Index::Reader->new($dir_name); This will create a new Plucene::Index::Reader with the passed in directory. open # If there is only one segment my Plucene::Index::SegmentReader $seg_read = $reader->open; # If there are many segments my Plucene::Index::SegmentsReader $seg_read = $reader->open; Returns an IndexReader reading the index in the given Directory. last_modified my $last_modified = Plucene::Index::Reader->last_modified($directory); index_exists if (Plucene::Index::Reader->index_exists($directory)){ ... } is_locked if (Plucene::Index::Reader->is_locked($directory)){ ... } delete $reader->delete($doc); delete_term $reader->delete_term($term); This will delete all the documents which contain the passed term. close $reader->close; unlock $reader->unlock($directory); num_docs / max_doc / document / is_deleted / norms / terms / doc_freq / term_docs / term_positions / _do_delete / _do_close These must be defined in a subclass perl v5.12.4 2011-08-14 Plucene::Index::Reader(3pm)

Check Out this Related Man Page

Plucene::Search::Query(3pm)				User Contributed Perl Documentation			       Plucene::Search::Query(3pm)

NAME
Plucene::Search::Query - base class for queries SYNOPSIS
my $s_query = Plucene::Search::Query::Subclass->new({ boost => $boost_factor}); my $scorer = $s_query->scorer($query, $searcher, $reader); DESCRIPTION
This is an abstract base class for queries. A query is a specification of the content an properties of the desired documents. Every search is done by matching a query against the document index and locating the ones that match the query. The simplest query specifies a single term (or word) that is to be matched against a single field (e.g. 'author') of each of the documents in the index. This kind of query matches any document that contains the term in the specified field. A more complex queries may contain nested queries with 'and', 'or', 'not' or 'phrase' relations. Queries may also contains specification of which document fields to match against the various parts of the query (.e.g. 'authors' and 'title') and hints that may effects the ranking of the matched documents ('boost' factor). METHODS
new my $s_query = Plucene::Search::Query::Subclass->new({ boost => $boost_factor}); boost Get / set this attribute scorer my $scorer = $s_query->scorer (Plucene::Search::Query $query, $searcher, $reader); prepare Does nothing sum_squared_weights / normalize / _scorer These must be defined in a subclass perl v5.12.4 2011-08-14 Plucene::Search::Query(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

have licencenumber, no accescode

Dear reader, Unfortunatly Ilost my accescode for installing mij Unix-Sco OpenServer. How do I proceed? With regards Mario (1 Reply)
Discussion started by: Mario Karčl
1 Replies

2. UNIX for Dummies Questions & Answers

postscript reader for hp-unix

sorry, it is a dumb question, but i could not find any answer in anything else. does anybody know whether there is any postscript file reader for HP-Unix? :) (1 Reply)
Discussion started by: sskb
1 Replies

3. UNIX Desktop Questions & Answers

NewsGroup Reader . . . Need Advice

I recently installed Suse 8.0 and am in need of a dependable news group reader. I need something that will authenticate just like Outlook Express does, because I will connecting to an Exchange News Host. Does anyone have any suggestions as to what I should donwload for a Microsoft compatible news... (2 Replies)
Discussion started by: pc9456
2 Replies

4. Shell Programming and Scripting

Index Command

Hi, can anyone explain me how this works (how the flow goes)? Example: CLIENT="UNIXHELP" The second argument passed $2="UNIX" RESULT=`awk -F"=" '/CLIENTS=/ {len = index($2,"'${CLIENT}'");print len }' $2` Thanks in advance. (1 Reply)
Discussion started by: abrd600
1 Replies

5. Programming

file handling

Hi all, I got a little issue here. Imagine that I have more than one process accessing one file. Is it possible to know which process(es) are accessing that file when I open the file?? Thanks for the help. Best regards, Ernesto (2 Replies)
Discussion started by: ninjanesto
2 Replies

6. Solaris

Secure Card Reader

I see on some of the recent Sun workstations that there is a secure card reader installed. I have a Sunblade 100 and 150 and would like to know, how do you access this device or turn it on to use it? Thanks, (2 Replies)
Discussion started by: stocksj
2 Replies

7. UNIX for Advanced & Expert Users

absolute path for Acrobat reader

I would like to get the path of acrobat reader for any unix pc. right now the path of acrobat reader is hardcoded BEGIN if :global.system = 'HP-UX' then HOST('/opt/Acrobat4/bin/acroread /export/USERGUIDE.pdf'); else v_path :=... (3 Replies)
Discussion started by: ramirezmc
3 Replies

8. Linux

Adobe Reader in RHEL4

Hi, Anyone knows if RHEL4 is packaged with Adobe Acrobat Reader? I need Adobe Reader in linux to open PDF file. There's a download on adobe site but I think that requires some dollars to avail the software. May be if RHEL4 has Adobe Reader package with it, there is no need to spend dollars. ... (5 Replies)
Discussion started by: etcpasswd
5 Replies

9. OS X (Apple)

Yasr screen reader

Hello, I own a MacBook pro laptop running mac os x 10.5.7 I recently downloaded yasr which is a screen reader program. I want to use yasr at the command line. I have a file which is in my home directory in a folder called downloads the file is called: yasr-0.6.9.tar I looked up on google the... (2 Replies)
Discussion started by: jamesapp
2 Replies

10. What is on Your Mind?

CNET News Reader App for the Forums

We are thinking of building a CNET style reader app for reading threads in the forums. One developer suggested we look at a CNN vBulletin app, which I am not familiar with (he said he will post the link tomorrow, Monday). Anyway, I asked the (potential) developer for this app to work with us in... (1 Reply)
Discussion started by: Neo
1 Replies

11. Shell Programming and Scripting

SED question

I have the following string: "File Reader" I also have a list of directories: "File Reader (#53)" "CSV Writer (#47)" "Scorer (#22)" I want to search the name of each directory until I find "File Reader". Then, I want the corresponding number to be returned. For example, if I am... (7 Replies)
Discussion started by: xan.amini
7 Replies

12. Shell Programming and Scripting

Insert values

HI Guys, I have a data in a file in the below format 45783 23457 23556 54584 Now i want to convert this data into the below format reader='45783' or reader='23457' or reader='23556' or reader='54584' Please help how to convert as i am applying loop but not able to get the data... (6 Replies)
Discussion started by: jaituteja
6 Replies

13. Homework & Coursework Questions

Compare to values in a file in unix

Here is sample file ===============Index 0=================== isActive=0, Input=1, Output=1, Status=1 State = Future , PRIMARY UnderCount=2 inCount=2 outCount=0 SCount=673 -- ===============Index 1=================== isActive=0, Input=1, Output=1, Status=1 ... (1 Reply)
Discussion started by: sooda
1 Replies

14. Shell Programming and Scripting

sed print between 2 patterns only last occurence

Hi, I have a file, which contains the following log data. I am trying to print fromt he file the following data: I have tried using sed, but I am getting from the first pattern Thanks for your help. (5 Replies)
Discussion started by: sol_nov
5 Replies

15. Post Here to Contact Site Administrators and Moderators

How to read the nth character from the line.?

I have Index Line and I tried to get the 9th character from the file and to check the character is "|" or not. Shell Scripting. Sample Index file. "91799489|K8E|188.004.A.917994892.1099R.c.01.pdf|2013|10/15/2014|002|B|C|C"... (3 Replies)
Discussion started by: pavand
3 Replies