NAME
Apache::Solr::XML - Apache Solr (Lucene) client via XML
INHERITANCE
Apache::Solr::XML
is a Apache::Solr
SYNOPSIS
my $solr = Apache::Solr::XML->new(...);
my $solr = Apache::Solr->new(format => 'XML', ...);
DESCRIPTION
Implement the Solr client, where the communication is in XML.
This module uses XML::LibXML to parse and construct XML.
METHODS
Constructors
- Apache::Solr::XML->new(OPTIONS)
-
Creates a new object. You may have objects shared the same LWP::UserAgent object, to share connections.
-Option --Defined in --Default agent Apache::Solr <created internally> autocommit Apache::Solr true core Apache::Solr undef format Apache::Solr 'XML' server Apache::Solr <required> server_version Apache::Solr <latest>
Accessors
- $obj->agent()
- $obj->autocommit([BOOLEAN])
- $obj->core([CORE])
- $obj->server([URI|STRING])
- $obj->serverVersion()
- $obj->xmlsimple()
Commands
Search
Updates
- $obj->addDocument(DOC|ARRAY, OPTIONS)
- $obj->commit(OPTIONS)
- $obj->delete(OPTIONS)
- $obj->extractDocument(OPTIONS)
- $obj->optimize(OPTIONS)
- $obj->rollback()
Helpers
- $obj->simpleDocument(COMMAND, [ATTRIBUTES, [CONTENT]])
-
Construct a simple XML structure.
- $obj->simpleUpdate(COMMAND, ATTRIBUTES, [CONTENT])
Parameter pre-processing
- $obj->deprecated(MESSAGE)
- $obj->expandExtract(PAIRS|ARRAY)
- $obj->expandSelect(PAIRS)
- $obj->expandTerms(PAIRS|ARRAY)
- $obj->ignored(MESSAGE)
Other helpers
SEE ALSO
This module is part of Apache-Solr distribution version 0.91, built on December 04, 2012. Website: http://perl.overmeer.net
LICENSE
Copyrights 2012 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html