lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bell <billnb...@gmail.com>
Subject Re: Why is /query needed for Json Facet?
Date Mon, 03 Aug 2015 18:22:15 GMT
OK I figured it out. The documentation is not updated. The default
component are as follows:

FacetModule.COMPONENT_NAME = "facet_module"

Thus. The following is the default with the new facet_module.

We need someone to update the solrconfig.xml and the docs.

<arr name="components">

      <str>query</str>

      <str>facet</str>

     <str>facet_module</str>

      <str>mlt</str>

      <str>highlight</str>

      <str>stats</str>

      <str>debug</str>

      <str>expand</str>

    </arr>

 protected List<String> getDefaultComponents()

  {

    ArrayList<String> names = new ArrayList<>(6);

    names.add( QueryComponent.COMPONENT_NAME );

    names.add( FacetComponent.COMPONENT_NAME );

    names.add( FacetModule.COMPONENT_NAME );

    names.add( MoreLikeThisComponent.COMPONENT_NAME );

    names.add( HighlightComponent.COMPONENT_NAME );

    names.add( StatsComponent.COMPONENT_NAME );

    names.add( DebugComponent.COMPONENT_NAME );

    names.add( ExpandComponent.COMPONENT_NAME);

    return names;

  }



On Mon, Aug 3, 2015 at 11:31 AM, William Bell <billnbell@gmail.com> wrote:

> I tried using /select and this query does not work? Cannot understand why.
> Passing Parameters via JSON
>
> We can also pass normal request parameters in the JSON body within the
> params block:
> $ curl "http://localhost:8983/solr/query?fl=title,author"-d '
> {
>   params:{
>     q:"title:hero",
>     rows:1
>   }
> }
> '
>
> Which is equivalent to:
> $ curl "http://localhost:8983/solr/query?fl=title
> ,author&q=title:hero&rows=1"
>
>
> --
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076
>



-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message