lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7226) Make /query/* jmx/* , requestDispatcher/*, <listener> <initParams> properties in solrconfig.xml editable
Date Fri, 27 Mar 2015 11:34:57 GMT

    [ https://issues.apache.org/jira/browse/SOLR-7226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14383685#comment-14383685
] 

Shai Erera commented on SOLR-7226:
----------------------------------

Before this commit, these lines were commented out:

{noformat}
//    List l = (List) ConfigOverlay.getObjectByPath(map,false, Arrays.asList("config", "initParams"));
//    assertNotNull("no object /config/initParams : "+ TestBlobHandler.getAsString(map) ,
l);
//    assertEquals( 1, l.size());
//    assertEquals( "val", ((Map)l.get(0)).get("key") );
{noformat}

The commit only added these

{noformat}
    List l = (List) ConfigOverlay.getObjectByPath(map,false, Arrays.asList("config", "initParams"));
    assertEquals( 1, l.size());
    assertEquals( "val", ((Map)l.get(0)).get("key") );
{noformat}

I added the {{assertNotNull}}, and it prints this:

{noformat}
java.lang.AssertionError: no object /config/initParams : {
  "responseHeader":{
    "status":0,
    "QTime":0},
  "config":{
    "znodeVersion":0,
    "luceneMatchVersion":"org.apache.lucene.util.Version:6.0.0",
    "updateHandler":{
      "class":"solr.DirectUpdateHandler2",
      "autoCommmitMaxDocs":-1,
      "indexWriterCloseWaitsForMerges":true,
      "openSearcher":true,
      "commitIntervalLowerBound":-1,
      "commitWithinSoftCommit":true,
      "autoCommit":{
        "maxDocs":-1,
        "maxTime":-1,
        "commitIntervalLowerBound":-1},
      "autoSoftCommit":{
        "maxDocs":-1,
        "maxTime":-1}},
    "query":{
      "useFilterForSortedQuery":false,
      "queryResultWindowSize":1,
      "queryResultMaxDocsCached":2147483647,
      "enableLazyFieldLoading":false,
      "maxBooleanClauses":1024,
      "":{
        "size":"10000",
        "showItems":"-1",
        "initialSize":"10",
        "name":"fieldValueCache"}},
    "jmx":{
      "agentId":null,
      "serviceUrl":null,
      "rootName":null},
    "requestHandler":{
      "standard":{
        "name":"standard",
        "class":"solr.StandardRequestHandler"},
      "/admin/file":{
        "name":"/admin/file",
        "class":"solr.admin.ShowFileRequestHandler",
        "invariants":{"hidden":"bogus.txt"}},
      "/update":{
        "name":"/update",
        "class":"org.apache.solr.handler.UpdateRequestHandler",
        "defaults":{}},
      "/update/json":{
        "name":"/update/json",
        "class":"org.apache.solr.handler.UpdateRequestHandler",
        "defaults":{"update.contentType":"application/json"}},
      "/update/csv":{
        "name":"/update/csv",
        "class":"org.apache.solr.handler.UpdateRequestHandler",
        "defaults":{"update.contentType":"application/csv"}},
      "/update/json/docs":{
        "name":"/update/json/docs",
        "class":"org.apache.solr.handler.UpdateRequestHandler",
        "defaults":{
          "update.contentType":"application/json",
          "json.command":"false"}},
      "/config":{
        "name":"/config",
        "class":"org.apache.solr.handler.SolrConfigHandler",
        "defaults":{}},
      "/schema":{
        "name":"/schema",
        "class":"org.apache.solr.handler.SchemaHandler",
        "defaults":{}},
      "/replication":{
        "name":"/replication",
        "class":"org.apache.solr.handler.ReplicationHandler",
        "defaults":{}},
      "/get":{
        "name":"/get",
        "class":"org.apache.solr.handler.RealTimeGetHandler",
        "defaults":{
          "omitHeader":"true",
          "wt":"json",
          "indent":"true"}},
      "/admin/luke":{
        "name":"/admin/luke",
        "class":"org.apache.solr.handler.admin.LukeRequestHandler",
        "defaults":{}},
      "/admin/system":{
        "name":"/admin/system",
        "class":"org.apache.solr.handler.admin.SystemInfoHandler",
        "defaults":{}},
      "/admin/mbeans":{
        "name":"/admin/mbeans",
        "class":"org.apache.solr.handler.admin.SolrInfoMBeanHandler",
        "defaults":{}},
      "/admin/plugins":{
        "name":"/admin/plugins",
        "class":"org.apache.solr.handler.admin.PluginInfoHandler",
        "defaults":{}},
      "/admin/threads":{
        "name":"/admin/threads",
        "class":"org.apache.solr.handler.admin.ThreadDumpHandler",
        "defaults":{}},
      "/admin/properties":{
        "name":"/admin/properties",
        "class":"org.apache.solr.handler.admin.PropertiesRequestHandler",
        "defaults":{}},
      "/admin/logging":{
        "name":"/admin/logging",
        "class":"org.apache.solr.handler.admin.LoggingHandler",
        "defaults":{}},
      "/admin/ping":{
        "name":"/admin/ping",
        "class":"org.apache.solr.handler.PingRequestHandler",
        "defaults":{},
        "invariants":{
          "echoParams":"all",
          "q":"solrpingquery"}},
      "/admin/segments":{
        "name":"/admin/segments",
        "class":"org.apache.solr.handler.admin.SegmentsInfoRequestHandler",
        "defaults":{}}},
    "directoryFactory":{
      "name":"DirectoryFactory",
      "class":"org.apache.solr.core.MockDirectoryFactory",
      "solr.hdfs.blockcache.enabled":true,
      "solr.hdfs.blockcache.blocksperbank":1024,
      "solr.hdfs.home":"",
      "solr.hdfs.confdir":"",
      "solr.hdfs.blockcache.global":"false"},
    "updateRequestProcessorChain":[
      {
        "name":"nodistrib",
        "":[
          {"class":"solr.NoOpDistributingUpdateProcessorFactory"},
          {"class":"solr.RunUpdateProcessorFactory"}]},
      {
        "name":"dedupe",
        "":[
          {
            "class":"org.apache.solr.update.processor.SignatureUpdateProcessorFactory",
            "enabled":true,
            "overwriteDupes":true,
            "fields":"v_t,t_field",
            "signatureClass":"org.apache.solr.update.processor.TextProfileSignature"},
          {"class":"solr.RunUpdateProcessorFactory"}]},
      {
        "name":"stored_sig",
        "":[
          {
            "class":"org.apache.solr.update.processor.SignatureUpdateProcessorFactory",
            "enabled":true,
            "signatureField":"non_indexed_signature_sS",
            "overwriteDupes":false,
            "fields":"v_t,t_field",
            "signatureClass":"org.apache.solr.update.processor.TextProfileSignature"},
          {"class":"solr.RunUpdateProcessorFactory"}]},
      {
        "name":"distrib-dup-test-chain-explicit",
        "":[
          {"class":"solr.RegexReplaceProcessorFactory"},
          {"class":"solr.DistributedUpdateProcessorFactory"},
          {"class":"solr.RegexReplaceProcessorFactory"},
          {"class":"solr.RunUpdateProcessorFactory"}]},
      {
        "name":"distrib-dup-test-chain-implicit",
        "":[
          {"class":"solr.RegexReplaceProcessorFactory"},
          {"class":"solr.RegexReplaceProcessorFactory"},
          {"class":"solr.RunUpdateProcessorFactory"}]}],
    "updateHandlerupdateLog":{"dir":""},
    "requestDispatcher":{
      "handleSelect":true,
      "httpCaching":{
        "never304":false,
        "etagSeed":"Solr",
        "lastModFrom":"opentime",
        "cacheControl":null},
      "requestParsers":{
        "multipartUploadLimitKB":2048,
        "formUploadLimitKB":2048,
        "addHttpRequestToContext":false}},
    "indexConfig":{
      "maxBufferedDocs":-1,
      "maxMergeDocs":-1,
      "maxIndexingThreads":2,
      "mergeFactor":-1,
      "ramBufferSizeMB":16.0,
      "writeLockTimeout":1000,
      "lockType":"single",
      "mergeScheduler":{"class":"org.apache.solr.util.RandomMergePolicy"}}}}
{noformat}

I didn't dig further, indeed there's no initParams record under "config", just wanted to add
that info to the issue.

> Make /query/* jmx/* , requestDispatcher/*, <listener> <initParams> properties
in solrconfig.xml editable
> --------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7226
>                 URL: https://issues.apache.org/jira/browse/SOLR-7226
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>
> The list of properties are
> query/useFilterForSortedQuery 
> query/queryResultWindowSize
> query/queryResultMaxDocsCached
> query/enableLazyFieldLoading
> query/boolTofilterOptimizer
> query/maxBooleanClauses"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message