[
https://issues.apache.org/jira/browse/SOLR-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960125#comment-13960125
]
AJ Lemke commented on SOLR-2894:
--------------------------------
Hi Brett,
I grabbed revision "5981529c65d4ae671895948f43d8770daa58746b" from the git
repository and ran my tests.
I am seeing still seeing the pivots as arrays rather than JSON objects.
If I change numShards to 1 I see the the pivots as an array of objects.
(http://localhost:8983/solr/admin/collections?action=CREATE&name=collection1&numShards=1&replicationFactor=2&maxShardsPerNode=4)
{code}
field: "cat",
value: "electronics",
count: 12,
pivot: [
{field: "popularity",value: 7,count: 4},
{field: "popularity",value: 6,count: 3},
{field: "popularity",value: 1,count: 2},
{field: "popularity",value: 0,count: 1},
{field: "popularity",value: 5,count: 1},
{field: "popularity",value: 10,count: 1}
]
{code}
If I change numShards to > 1 I see the the pivots as an array of arrays.
(http://localhost:8983/solr/admin/collections?action=CREATE&name=collection1&numShards=2&replicationFactor=2&maxShardsPerNode=4)
{code}
"field",
"cat",
"value",
"electronics",
"count",
12,
"pivot",
[
["field","popularity","value",7,"count",4],
["field","popularity","value",6,"count",3],
["field","popularity","value",1,"count",2],
["field","popularity","value",0,"count",1],
["field","popularity","value",5,"count",1],
["field","popularity","value",10,"count",1]
]
{code}
I am using Windows 7 as my test environment and starting with this batch file:
{code:title=Batch File}
echo Deleting Temp Data
rmdir /s /q D:\dev\lucene-solr\solr\node1
rmdir /s /q D:\dev\lucene-solr\solr\node2
echo Copying the example folder
xcopy /s /e /y /i D:\dev\lucene-solr\solr\example D:\dev\lucene-solr\solr\node1
xcopy /s /e /y /i D:\dev\lucene-solr\solr\example D:\dev\lucene-solr\solr\node2
echo removing the collection1 folder
rmdir /s /q D:\dev\lucene-solr\solr\node1\solr\collection1
rmdir /s /q D:\dev\lucene-solr\solr\node2\solr\collection1
echo Starting Solr Processes
cd D:\dev\lucene-solr\solr\node1
start cmd /c java -DzkRun -jar start.jar
sleep 10
cd D:\dev\lucene-solr\solr\node2
start cmd /c java -Djetty.port=7574 -DzkRun -DzkHost=localhost:9983 -jar
start.jar
echo All Solr Processes started
sleep 10
cd D:\dev\lucene-solr\solr\example\scripts\cloud-scripts
cmd /c zkcli.bat -zkhost localhost:9983 -cmd upconfig -confdir
D:\dev\lucene-solr\solr\example\solr\collection1\conf -confname collection1
cmd /c zkcli.bat -zkhost localhost:9983 -cmd linkconfig -collection collection1
-confname collection1
echo Zookeeper updated to contain collection1
cmd /c curl
"http://localhost:8983/solr/admin/collections?action=CREATE&name=collection1&numShards=2&replicationFactor=2&maxShardsPerNode=4"
cmd /c curl
"http://localhost:8983/solr/admin/collections?action=RELOAD&name=collection1"
sleep 10
cd D:\dev\lucene-solr\solr\example\exampledocs
cmd /c java -Dtype=text/xml -Doptimize=yes
-Durl=http://localhost:8983/solr/collection1/update -jar post.jar *.xml
cmd /c java -Dtype=text/csv -Doptimize=yes
-Durl=http://localhost:8983/solr/collection1/update -jar post.jar *.csv
cmd /c java -Dtype=application/json -Doptimize=yes
-Durl=http://localhost:8983/solr/collection1/update -jar post.jar *.json
echo Collection1 has been bootstrapped and optimized
{code}
Could you show me how you are starting yours?
AJ
> Implement distributed pivot faceting
> ------------------------------------
>
> Key: SOLR-2894
> URL: https://issues.apache.org/jira/browse/SOLR-2894
> Project: Solr
> Issue Type: Improvement
> Reporter: Erik Hatcher
> Fix For: 4.8
>
> Attachments: SOLR-2894-reworked.patch, SOLR-2894.patch,
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch,
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch,
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch,
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch,
> SOLR-2894.patch, dateToObject.patch
>
>
> Following up on SOLR-792, pivot faceting currently only supports
> undistributed mode. Distributed pivot faceting needs to be implemented.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]