org.eclipse.rdf4j.sail.solr

## Class SolrSearchDocument

- java.lang.Object
- - org.eclipse.rdf4j.sail.solr.SolrSearchDocument

- All Implemented Interfaces:
    SearchDocument

      public class SolrSearchDocument
      extends Object
      implements SearchDocument

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SolrSearchDocument()`
    `SolrSearchDocument(org.apache.solr.common.SolrDocument doc)`
    `SolrSearchDocument(String id, String resourceId, String context)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addGeoProperty(String name, String text)`
    `void` | `addProperty(String name)` Adds/creates a new property with the given name.
    `void` | `addProperty(String name, String text)` Adds a value to the property with the given name.
    `String` | `getContext()`
    `org.apache.solr.common.SolrDocument` | `getDocument()`
    `String` | `getId()`
    `List<String>` | `getProperty(String name)`
    `Set<String>` | `getPropertyNames()` Returns a set of the property names.
    `String` | `getResource()`
    `boolean` | `hasProperty(String name, String value)` Checks whether a field occurs with a specified value in a Document.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SolrSearchDocument

          public SolrSearchDocument()

    - #### SolrSearchDocument

          public SolrSearchDocument(org.apache.solr.common.SolrDocument doc)

    - #### SolrSearchDocument

          public SolrSearchDocument(String id,
                                    String resourceId,
                                    String context)

  - ### Method Detail

    - #### getDocument

          public org.apache.solr.common.SolrDocument getDocument()

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `SearchDocument`

    - #### getResource

          public String getResource()

      Specified by:
        `getResource` in interface `SearchDocument`

    - #### getContext

          public String getContext()

      Specified by:
        `getContext` in interface `SearchDocument`

    - #### getPropertyNames

          public Set<String> getPropertyNames()

      Description copied from interface: `SearchDocument`
      Returns a set of the property names.
      Specified by:
        `getPropertyNames` in interface `SearchDocument`

    - #### addProperty

          public void addProperty(String name)

      Description copied from interface: `SearchDocument`
      Adds/creates a new property with the given name.
      Specified by:
        `addProperty` in interface `SearchDocument`

    - #### addProperty

          public void addProperty(String name,
                                  String text)

      Description copied from interface: `SearchDocument`
      Adds a value to the property with the given name.
      Specified by:
        `addProperty` in interface `SearchDocument`

    - #### addGeoProperty

          public void addGeoProperty(String name,
                                     String text)

      Specified by:
        `addGeoProperty` in interface `SearchDocument`

    - #### hasProperty

          public boolean hasProperty(String name,
                                     String value)

      Description copied from interface: `SearchDocument`
      Checks whether a field occurs with a specified value in a Document.
      Specified by:
        `hasProperty` in interface `SearchDocument`

    - #### getProperty

          public List<String> getProperty(String name)

      Specified by:
        `getProperty` in interface `SearchDocument`

Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.