Re: Why are these two queries different?

2015-05-12 Thread Frank li
Thanks for your help. I figured it out. Just as you said. Appreciate your help. Somehow forgot to reply your post. On Wed, Apr 29, 2015 at 9:24 AM, Chris Hostetter wrote: > > : We did two SOLR qeries and they supposed to return the same results but > : did not: > > the short answer is: if you wa

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-10 Thread Frank li
I figured it out now. It works. "cats" just a name, right? It does not matter what is used. Really appreciate your help. This is going to be really useful. I meant "json.facet". On Sun, May 10, 2015 at 12:13 AM, Frank li wrote: > Here is our SOLR query: > > > h

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-10 Thread Frank li
Here is our SOLR query: http://qa-solr:8080/solr/select?q=type:PortalCase&json.facet={categories:{terms:{field:campaign_id_ls,sort:%27count+asc%27}}}&rows=0 I replaced "cats" with "categories". It is still not working. On Sun, May 10, 2015 at 12:10 AM, Frank li

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-10 Thread Frank li
ely easier to use "-d" with curl... > > curl "http://localhost:8983/solr/techproducts/query"; -d > 'q=*:*&json.facet={cats:{terms:{field:cat,sort:"count asc"}}}' > > That also allows you to format it nicer for reading as well: > > c

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-08 Thread Frank li
Hi Yonik, Any update for the question? Thanks in advance, Frank On Thu, May 7, 2015 at 2:49 PM, Frank li wrote: > Is there any book to read so I won't ask such dummy questions? Thanks. > > On Thu, May 7, 2015 at 2:32 PM, Frank li wrote: > >> This one does not hav

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-07 Thread Frank li
Is there any book to read so I won't ask such dummy questions? Thanks. On Thu, May 7, 2015 at 2:32 PM, Frank li wrote: > This one does not have problem, but how do I include "sort" in this facet > query. Basically, I want to write a solr query which can sort the fa

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-07 Thread Frank li
} <http://localhost:8983/solr/demo/query?q=apple&json.facet=%7Bx:%27avg%28price%29%27%7D> I really appreciate your help. Frank <http://localhost:8983/solr/demo/query?q=apple&json.facet=%7Bx:%27avg%28price%29%27%7D> On Thu, May 7, 2015 at 2:24 PM, Yonik Seeley wrote: > On

Re: JSON Facet & Analytics API in Solr 5.1

2015-05-07 Thread Frank li
Hi Yonik, I am reading your blog. It is helpful. One question for you, for following example, curl http://localhost:8983/solr/query -d 'q=*:*&rows=0& json.facet={ categories:{ type : terms, field : cat, sort : { x : desc}, facet:{ x : "avg(price)", y : "sum(p

Why are these two queries different?

2015-04-27 Thread Frank li
We did two SOLR qeries and they supposed to return the same results but didnot: Query 1: all_text:(US 4,568,649 A) "parsedquery": "(+((all_text:us ((all_text:4 all_text:568 all_text:649 all_text:4568649)~4))~2))/no_coord", Result: "numFound": 0, Query 2: all_text:(US 4568649) "parsedquery": "(

Re: Config join parse in solrconfig.xml

2015-04-07 Thread Frank li
r, you need to use > edismax or explicitly create the multiple clauses. > > I'm not quite sure what the join parser is doing with the df > parameter. So my first question is "what happens if you just use a > single field for df?". > > Best, > Erick > > On Mon,

Re: Config join parse in solrconfig.xml

2015-04-06 Thread Frank li
The error message was from the query with "debug=query". On Mon, Apr 6, 2015 at 11:49 AM, Frank li wrote: > Hi Erick, > > > Thanks for your response. > > Here is the query I am sending: > > http://dev-solr:8080/solr/collection1/select?q={!join+from=litigation_

Re: Config join parse in solrconfig.xml

2015-04-06 Thread Frank li
ng else that would help. You might review: > > http://wiki.apache.org/solr/UsingMailingLists > > Best, > Erick > > On Fri, Apr 3, 2015 at 10:58 AM, Frank li wrote: > > Hi, > > > > I am starting using join parser with our solr. We have some default >

Config join parse in solrconfig.xml

2015-04-03 Thread Frank li
Hi, I am starting using join parser with our solr. We have some default fields. They are defined in solrconfig.xml: edismax explicit 10 all_text number party name all_code ent_name all_text number^3 name^5 party^3 all_code^2 ent_name^7 id descripti

sort and group.sort

2014-11-19 Thread Frank li
We have a query which has both sort and group.sort. What we are expecting is that we can use sort to sort groups but inside the group we have a different sort. However, looks like sort is over-writting the sorting order inside groups. Can any one of you help us on this? Basically we want to sort