Does solr support multiple collapse officially?

2017-06-23 Thread Jeffery Yuan
I am trying to use multiple collapse (post) filters: - collapse on seriesId if seriesId are same - collapse on tmsId(another Id) if they are same But seems that Solr doesn't support multiple collapse filters. I get NullPointerException sometimes, which I summarized at https://issues.apache.org/

Re: Problems with elevation component configuration

2017-06-20 Thread Jeffery Yuan
Created https://issues.apache.org/jira/browse/SOLR-10928 Support elevate.q in QueryElevationComponent to track this. -- View this message in context: http://lucene.472066.n3.nabble.com/Problems-with-elevation-component-configuration-tp3993204p4342075.html Sent from the Solr - User mailing list

Is it possible to support context filtering for FuzzyLookupFactory?

2017-06-20 Thread Jeffery Yuan
FuzzyLookupFactory is great as it can still find matches even if users mis-spell. context filtering is also great, as we can only show suggestions based on user's languages, doc types etc But its a pity that (seems) FuzzyLookupFactory and context filtering don't work together. https://cwiki.apa

Re: SolrJ - How to add a blocked document without child documents

2017-06-20 Thread Jeffery Yuan
Mikhail Khludnev provided the workaround in https://issues.apache.org/jira/browse/SOLR-6096: So, far the workaround is to nest empty child w/o fields or with id only field. -- It works -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-How-to-add-a-blocked-document-withou

Does Solr support multiple collapse filters - throws NullPointerException

2017-06-15 Thread Jeffery Yuan
I am trying to use solr collapse function: But seems when we use 2 or more collapse filters, it will throw NullPointerException? Does anyone have idea whether solr supports multiple collapse filters? - it doesn't mention about using 2 or more collapse filters at all at https://cwiki.apache.org/c

Re: SolrJ - How to add a blocked document without child documents

2017-05-16 Thread Jeffery Yuan
Yes, the id is the unique key. I think maybe this is because the first one (a parent doc(Parent1) without any children) is not a block (I don't really know what's the term), so later when we add same parent (Parent2) with some children, the first one is somehow left alone. - If we update the pare

Re: SolrJ - How to add a blocked document without child documents

2017-05-15 Thread Jeffery Yuan
issue by always deleting first, but I am wondering whether there is better approach. Thanks Jeffery Yuan -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-How-to-add-a-blocked-document-without-child-documents-tp4335006p4335195.html Sent from the Solr - User mailing

SolrJ - How to add a blocked document without child documents

2017-05-13 Thread Jeffery Yuan
Nested documents is quite useful to model structural hierarchy data. Sometimes, we only have parent document which doesn't have child documents yet, we want to add it first, and then later update it: re-add the whole document including the parent documents and its all child documents. But we fou

Re: what will happen for incoming request when we are reloading a collection?

2017-01-16 Thread Jeffery Yuan
That's good to know :) Thanks so much for your reply, Edwin and Mikhail. -- View this message in context: http://lucene.472066.n3.nabble.com/what-will-happen-for-incoming-request-when-we-are-reloading-the-collection-tp4313743p4314262.html Sent from the Solr - User mailing list archive at Nabb

what will happen for incoming request when we are reloading a collection?

2017-01-12 Thread Jeffery Yuan
I am wondering what will happen for incoming requests when we are reloading a collection. Whether the incoming requests may fail or just maybe a little slow, or no impact for incoming requests at all? Thanks Jeffery Yuan -- View this message in context: http://lucene.472066.n3.nabble.com/what

Support Multiple (AND) Context Filter Query in Suggestor

2017-01-10 Thread Jeffery Yuan
r(6.4) implementation? Thanks a lot. Jeffery Yuan -- View this message in context: http://lucene.472066.n3.nabble.com/Support-Multiple-AND-Context-Filter-Query-in-Suggestor-tp4313416.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Query Elevation Component as a Managed Resource

2017-01-10 Thread Jeffery Yuan
Hi, kamaci: That's great :) It's so nice of you to create the path and implement the feature which are wanted for a long time :) Best, Jeffery Yuan -- View this message in context: http://lucene.472066.n3.nabble.com/Query-Elevation-Component-as-a-Managed-Resource-tp4312089p43

Re: Query Elevation Component as a Managed Resource

2017-01-08 Thread Jeffery Yuan
I am looking for same things. Seems Solr doesn't support this. Maybe you can vote for https://issues.apache.org/jira/browse/SOLR-6092, so add a patch for it :) -- View this message in context: http://lucene.472066.n3.nabble.com/Query-Elevation-Component-as-a-Managed-Resource-tp4312089p4313034

Re: How to train the model using user clicks when use ltr(learning to rank) module?

2017-01-05 Thread Jeffery Yuan
Thanks , Will Martin. I checked the pdf it's great. but seems not very useful for my question: How to train the model using user clicks when use ltr(learning to rank) module. I know the concept after reading these papers. But still not sure how to code them. -- View this message in context:

How to train the model using user clicks when use ltr(learning to rank) module?

2017-01-05 Thread Jeffery Yuan
Thanks very much for integrating machine learning to Solr. https://github.com/apache/lucene-solr/blob/f62874e47a0c790b9e396f58ef6f14ea04e2280b/solr/contrib/ltr/README.md In the Assemble training data part: the third column indicates the relative importance or relevance of that doc Could you please

Re: SolrJ doesn't work with Json facet api

2017-01-04 Thread Jeffery Yuan
Thanks for your response. We definitely use solrQuery.set("json.facet", "the json query here"); Btw we are using Solr 5.2.1. -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-doesn-t-work-with-Json-facet-api-tp4299867p4312459.html Sent from the Solr - User mailing lis

How to suse solrJ to sned delete request to delete managed resource

2017-01-01 Thread Jeffery Yuan
I am trying to implement web services to managed stopwords and Synonyms in our solr cloud servers. https://cwiki.apache.org/confluence/display/solr/Managed+Resources I already implemented the add and get functions. But I have

Re: Whether replicationFactor=2 makes sense?

2016-10-07 Thread Jeffery Yuan
Thanks Erick Erickson, that totally makes sense for me now :) -- View this message in context: http://lucene.472066.n3.nabble.com/Whether-replicationFactor-2-makes-sense-tp4300204p4300271.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Whether replicationFactor=2 makes sense?

2016-10-07 Thread Jeffery Yuan
Thanks so much for your reply, Erick Erickson. We want to increase replicationFactor from 1 to 2 to, but I am wondering what's the advantage to do so. Whether this will make our system more robust and resilient to temporary network failure issue? Say if we have 3 machines, and split data into 3 s

Whether replicationFactor=2 makes sense?

2016-10-07 Thread Jeffery Yuan
We are trying to building our solr cloud servers, we want to increase replicationFactor, but don't want to set it as 3 as we have a lot of data. So I am wondering whether it makes sense to set replicationFactor as 2, and what's the impact, whether this will cause problem for replica leader electio

SolrJ doesn't work with Json facet api

2016-10-05 Thread Jeffery Yuan
It seems that Solr returns different format when use Json facet api compared with the old syntax Thus solrj facet related api will not work when use Json facet api rsp.getFacetField("myFeild") is null The Json API is easier to use, its response is cleaner. But it would be even better if it works

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
Sorry for that, Yonik Seeley. I have closed it and link it to https://issues.apache.org/jira/browse/SOLR-9603 -- View this message in context: http://lucene.472066.n3.nabble.com/Facet-Stats-MinCount-How-to-use-mincount-filter-when-use-facet-s

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
Thanks Yonik Seeley. I created Support Bucket Filters in Facet Functions to track this issue. -- View this message in context: http://lucene.472066.n3.nabble.com/Facet-Stats-MinCount-How-to-use-mincount-filter-when-use-facet-stats-tp4299367p

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
Yonik, Thanks very much for your reply. I think you are talking about min/max functions that are used to create stats facet. http://yonik.com/solr-facet-functions/ Here we would like to do filter in the (sum) function facet. - so it would only return accountIds whose sum(timeSpent) is between min

Re: Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-04 Thread Jeffery Yuan
We will use Solr facet function - it's very powerful. The only missing part is that it doesn't minValue and maxValue filter. http://yonik.com/solr-facet-functions/ http://localhost:8983/solr/events/select?q=*:*&json.facet={ categories:{ type : terms, field : accountId, numBuckets

Facet+Stats+MinCount: How to use mincount filter when use facet+stats

2016-10-03 Thread Jeffery Yuan
We store some events data such as *accountId, startTime, endTime, timeSpent* and some other searchable fields.We want to get all acountIds that spend more than xhours between startTime and endTime and some other criteria which are not important here.We can use facet and stats query like below:*stat

Re: Solr Wide Column - not work when with 200k dynamic fields

2016-10-02 Thread Jeffery Yuan
Hi, Alexandre Rafalovitch Sorry for the late reply. Trying to find time to use nested documents and implement the code . Thanks so much for your reply and suggestion. It totally make sense. More about nested documents: http://yonik.com/solr-nested-objects/

Re: Whether SolrCloud can support 2 TB data?

2016-09-23 Thread Jeffery Yuan
Thanks so much for your prompt reply. We are definitely going to use SolrCloud. I am just wondering whether SolrCloud can scale even at TB data level and what kind of hardware configuration it should be. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Whether-solr

Whether solr can support 2 TB data?

2016-09-23 Thread Jeffery Yuan
Hi, Dear all: In our application, every data there is about 800mb raw data, we are going to store this data for 5 years, then it's about 1 or 2 TB data. I am wondering whether solr can support this much data? Usually how much data we store per node, how many nodes we can have in solr cloud

Solr Wide Column - not work when with 200k dynamic fields

2016-08-30 Thread Jeffery Yuan
We store marketing message in Solr, one type is voucher message, this message stores a map: key is accountId, value is this user's voucher - we also search on some other fields. *My current approach is to add a field: accountIds, index it and search against it.* Another field: details, not-indexed

Duplicate docs in pagination with same score in Solr Cloud

2016-05-04 Thread Jeffery Yuan
We are running a match all query in solr cloud(for example, one shard with 3 replicas) - all data have same score. In solr, if docs have same score, they will be sorted by internal docid. In solr clound, CloudSolrClient will send request to different shards. - round robin Same document may have