[−][src]Struct stellr::DirectSolrClient
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]
pub fn clone(&self) -> DirectSolrClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for DirectSolrClient
[src]
pub fn cmp(&self, other: &DirectSolrClient) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<DirectSolrClient> for DirectSolrClient
[src]
pub fn eq(&self, other: &DirectSolrClient) -> bool
[src]
pub fn ne(&self, other: &DirectSolrClient) -> bool
[src]
impl PartialOrd<DirectSolrClient> for DirectSolrClient
[src]
pub fn partial_cmp(&self, other: &DirectSolrClient) -> Option<Ordering>
[src]
pub fn lt(&self, other: &DirectSolrClient) -> bool
[src]
pub fn le(&self, other: &DirectSolrClient) -> bool
[src]
pub fn gt(&self, other: &DirectSolrClient) -> bool
[src]
pub fn ge(&self, other: &DirectSolrClient) -> bool
[src]
impl SolrCloudMethods for DirectSolrClient
[src]
Support the SolrCloud methods for a direct connection too
pub fn select(&self, collection: &str) -> SolrResult<RequestBuilder>
[src]
pub fn update(&self, collection: &str) -> SolrResult<RequestBuilder>
[src]
impl SolrCoreMethods for DirectSolrClient
[src]
pub fn live_node_url(&self) -> SolrResult<String>
[src]
pub fn request_config(&self) -> &SolrClientConfig
[src]
pub fn set_request_config(&mut self, request_config: SolrClientConfig)
[src]
pub fn build_request_url(&self, path: &str) -> SolrResult<String>
[src]
pub fn build_client(&self) -> SolrResult<Client>
[src]
pub fn create_get_request(&self, path: &str) -> SolrResult<RequestBuilder>
[src]
pub fn create_post_request(&self, path: &str) -> SolrResult<RequestBuilder>
[src]
impl StructuralEq for DirectSolrClient
[src]
impl StructuralPartialEq for DirectSolrClient
[src]
Auto Trait Implementations
impl RefUnwindSafe for DirectSolrClient
[src]
impl Send for DirectSolrClient
[src]
impl Sync for DirectSolrClient
[src]
impl Unpin for DirectSolrClient
[src]
impl UnwindSafe for DirectSolrClient
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,