Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

webservice::solr::document(3pm) [debian man page]

WebService::Solr::Document(3pm) 			User Contributed Perl Documentation			   WebService::Solr::Document(3pm)

NAME
WebService::Solr::Document - A document object SYNOPSIS
my $doc = WebService::Solr::Document->new; $doc->add_fields( @fields ); $doc->boost( 2.0 ); my $id = $doc->value_for( 'id' ); my @subjects = $doc->values_for( 'subject' ); DESCRIPTION
This class represents a basic document object, which is basically a collection of fields. ACCESSORS
o fields - an array of fields o boost - a floating-point "boost" value METHODS
new( @fields|@fields ) Constructs a new document object given @fields. A field can be a WebService::Solr::Field object, or a structure accepted by "WebService::Solr::Field->new". BUILDARGS( @args ) A Moose override to allow our custom constructor. add_fields( @fields|@fields ) Adds @fields to the document. field_names Returns a list of field names that are in this document. value_for( $name ) Returns the first value for $name. values_for( $name ) Returns all values for $name. to_element( ) Serializes the object to an XML::Easy::Element object. to_xml( ) Serializes the object to xml. AUTHORS
Brian Cassidy <bricas@cpan.org> Kirk Beers COPYRIGHT AND LICENSE
Copyright 2008-2012 National Adult Literacy Database This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-05-24 WebService::Solr::Document(3pm)

Check Out this Related Man Page

WebService::Solr::Response(3pm) 			User Contributed Perl Documentation			   WebService::Solr::Response(3pm)

NAME
WebService::Solr::Response - Parse responses from Solr SYNOPSIS
my $res = WebService::Solr::Response->new( $http_res ); for my $doc( $res->docs ) { print $doc->value_for( 'id'), " "; } my $pager = $res->pager; DESCRIPTION
This class encapsulates responses from the Solr Web Service. Typically it is used when documents are returned from a search query, though it will accept all responses from the service. ACCESSORS
o raw_response - the raw HTTP::Response object. o content - a hashref of deserialized JSON data from the response. o docs - an array of WebService::Solr::Document objects. o pager - a Data::Page object for the search results. o pageset - a Data::Pageset object for the search results. Takes the same arguments as "Data::Pageset->new" does. All arguments optional. METHODS
new( $response ) Given an HTTP::Response object, it will parse the returned data as required. BUILDARGS( @args ) A Moose override to allow our custom constructor. facet_counts( ) A shortcut to the "facet_counts" key in the response data. spellcheck( ) A shortcut to the "spellcheck" key in the response data. solr_status( ) Looks for the status value in the response data. ok( ) Calls "solr_status()" and check that it is equal to 0. AUTHORS
Brian Cassidy <bricas@cpan.org> Kirk Beers COPYRIGHT AND LICENSE
Copyright 2008-2012 National Adult Literacy Database This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-05-24 WebService::Solr::Response(3pm)
Man Page

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

export only last two fields?

export only last two fields? here is my test file, with variable length of fields, each line is composed of letter only, and each line has at least 2 fields, fields were separated by dot (.) abcd.abc.mlm dft.dfasdf.bmk.kdjlka ksdfalksdjfsl.tyu.ml kasdjf.asdfkja.asdfj.asdf.df.m lja.ml... (4 Replies)
Discussion started by: fedora
4 Replies

2. Shell Programming and Scripting

help me to count no of fields in a file

hi i am a new unix user i want to check whether a file contains spacefied no of fields if so i should delete last fields and then insert some fields in 2nd field please help me Thanks Regards babu :mad: (7 Replies)
Discussion started by: babu@shell
7 Replies

3. Shell Programming and Scripting

Unix Operating Systems Information Document

Hi all, I prepared a document on UNIX OS. Its an humble attempt to share my knowledge. Please review the document attached and correct if any mistakes and any suggestions to make it more useful and any troubleshooting information if needed to add. Please help in making the document to add... (2 Replies)
Discussion started by: gurukottur
2 Replies

4. Shell Programming and Scripting

Awk - Compare fields and increment variables

Hi, My first post to this group... I have a need to to parse a source file which is a capture from a network analyser. I have two fields that need to be checked: - Field 7 represents the packet length (an integer), and Field 4 represents a network address (e.g. 192.168.25.3) - The... (10 Replies)
Discussion started by: mv652
10 Replies

5. Shell Programming and Scripting

Problem updated file with new entries

Hi, I have a file, fileA, that consists of two fields. Field 1 has an old object name, and field 2 has a new object name. I would like to search and replace a master file, FileB, by substituting the old object name (field 1 in fileA) with the new object name ( field 2 in fileA). FileA:... (16 Replies)
Discussion started by: pitccorp01
16 Replies

6. Solaris

boost thread not accessible to boost::move error

Hi All I am working unders Sun Solaris and I am not "/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>). Do you know if there are other solutions other than... (2 Replies)
Discussion started by: manustone
2 Replies

7. Programming

cmake and boost library installation problem

hi all, I am new to linux and C++ programming so I'm posting in hope of some help. I am trying to install a C++ library using boost and cmake but I keep gettin this error in the terminal: CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1199 (message): Unable to find the... (9 Replies)
Discussion started by: peter_071
9 Replies

8. UNIX for Dummies Questions & Answers

How do I declare boost?

Hello all, I am trying to "make" a database system, VDB (Veritas Data Base), and when I run "make" I receive the following error: VDBException.h:19: error: expected `)' before '*' token VDBException.h:20: error: expected `)' before '*' token VDBException.h:43: error: expected `)' before '*'... (4 Replies)
Discussion started by: Tyler_92
4 Replies

9. Programming

Solr--Basic Example execution error

Hello , I am new bee to Solr and trying to run sample example for solr . java -Durl=http://locahost:8983/solr/update -jar post.jar books.csv Error SimplePostTool version 1.5 Posting files to base url http://locahost:8983/solr/update using content-type... (3 Replies)
Discussion started by: Tomlight
3 Replies

10. Shell Programming and Scripting

Bash - Comparing 2 xml strings masking certain fields

Would like to compare 2 XML Strings which has certain known fields changed. For example, Date field will always have differences. When comparing both strings, skip/mask all the occurring Date Field's `DtField1` and `DtField2` Note: these are not formatted xml format. File1: ... (1 Reply)
Discussion started by: Sajjadmehdi
1 Replies

11. UNIX for Beginners Questions & Answers

How to add number of fields throughout file together?

So, I have three problems that cover this subject. First one asks me to find the number of fields in the file that contain the substring "he". I found the number of fields, but the problem I have is that they are displaying by each record. I want to add all of the records' fields together. With... (2 Replies)
Discussion started by: mc10
2 Replies