[][src]Struct stellr::DirectSolrClient

pub struct DirectSolrClient { /* fields omitted */ }

Directly access a solr node via http.

This takes the name of the target as an argument to new(), either as a URL

use stellr::prelude::*;
use stellr::DirectSolrClient;

let my_client = DirectSolrClient::new("http://localhost:8983/solr")?;
assert_eq!(my_client.live_node_url().unwrap(), "http://localhost:8983/solr");

or as a node_name

use stellr::prelude::*;
use stellr::DirectSolrClient;

let my_client = DirectSolrClient::new("10.23.45.6:8080_solr")?;
assert_eq!(my_client.live_node_url().unwrap(), "http://10.23.45.6:8080/solr");

Please see the SolrCoreMethods and SolrCloudMethods Traits for details on how to use these clients.

Errors

The new() method can create BadHostErrors and HostParseErrors if the supplied name is bad.

Implementations

impl DirectSolrClient[src]

pub fn new(host_address: &str) -> SolrResult<DirectSolrClient>[src]

Assemble a new client from a hostname and port.

This method assumes that the context is /solr, if not please use new_with_context

Trait Implementations

impl Clone for DirectSolrClient[src]

impl Debug for DirectSolrClient[src]

impl Default for DirectSolrClient[src]

impl Display for DirectSolrClient[src]

impl Eq for DirectSolrClient[src]

impl Hash for DirectSolrClient[src]

impl Ord for DirectSolrClient[src]

impl PartialEq<DirectSolrClient> for DirectSolrClient[src]

impl PartialOrd<DirectSolrClient> for DirectSolrClient[src]

impl SolrCloudMethods for DirectSolrClient[src]

Support the SolrCloud methods for a direct connection too

impl SolrCoreMethods for DirectSolrClient[src]

impl StructuralEq for DirectSolrClient[src]

impl StructuralPartialEq for DirectSolrClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]