Best approach for flattening data or using nested lists.

2018-02-04 Thread David Lee
I have a project where I am working with nested data (not that deep, but multiple lists) and would love to get some advice from other experienced developers. I've read most of the books on Solr (including Solr In Action) and though they provide good information (though dated) on the actual inde

Re: Having trouble indexing nested docs using "split" feature.

2017-12-02 Thread David Lee
uot;Adam Smith",     "reviewer_background": { "highest_rank": "Good", "latest_review": "10/10/2017 16:18:00.000 CST", } } ], "checkouts": [ { "member_id&

Having trouble indexing nested docs using "split" feature.

2017-12-02 Thread David Lee
Hi all, I've been trying for some time now to find a suitable way to deal with json documents that have nested data. By suitable, I mean being able to index them and retrieve them so that they are in the same structure as when indexed. I'm using version 7.1 under linux Mint 18.3 with Oracle

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread David Lee
Hi Rick, Adding to this subject, I do appreciate you pointing us to these articles, but I'm curious about how much of these take into account the latest versions of Solr (ie: +6.5 and 7) given the JSON split capabilities, etc. I know that is just on the indexing side so the searches may be th

Re: Reload an unloaded core

2017-05-02 Thread David Lee
I have similar needs but for a slightly different use-case. In my case, I am breaking up cores / indexes based on the month and year so that I can add an alias that always points to the last few months, but beyond that I want to simply unload the other indexes once they get past a few months o

Re: Poll: Master-Slave or SolrCloud?

2017-04-27 Thread David Lee
As someone who moved from ES to Solr, I can say that one of the things that makes ES so much easier to configure is that the majority of things that need to be set for a specific environment are all in pretty much one config file. Also, I didn't have to deal with the "magic stuff" that many peo

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread David Lee
> On 11/23/2014 2:13 PM, David Lee wrote: > > Thanks Erik. I am actually using edismax query parser in SOLR. I can > > explicitly specify the fieldType (e.g., text_general or text_en) for > > different fields (e.g., title or description) . But I do not see how to > >

Re: analyzer of user queries in SOLR 4.10?

2014-11-23 Thread David Lee
> >Erik > > > > On Nov 23, 2014, at 13:08, David Lee wrote: > > > > This could be a dummy question. At index time, we can specify the > > fieldType of different fields; thus, we know the analyzers for those > > fields. > > > >

analyzer of user queries in SOLR 4.10?

2014-11-23 Thread David Lee
This could be a dummy question. At index time, we can specify the fieldType of different fields; thus, we know the analyzers for those fields. In schema.xml, I do not see the configuration how to specify the fieldType (thus analyzer) for runtime user queries. Can anyone help explain this ?

SOLR bf SyntaxError

2014-11-18 Thread David Lee
Hi, I tried to use bf for boosting, and got the following error: org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Unexpected text after function: ) Here's the bf boosting: sum(div(product(log(map(reviews,0,0,1)),rating),2.5),div(log(map(sales,0,0,1)),10)) What's the

Re: Index complex JSON data in SOLR

2014-11-15 Thread David Lee
use > > tokens in store=false/index=true fields are only stored once. > > > > Regards, > > Alex. > > Personal: http://www.outerthoughts.com/ and @arafalov > > Solr resources and newsletter: http://www.solr-start.com/ and @solrstart > > Solr popularizers communi

Re: Index complex JSON data in SOLR

2014-11-15 Thread David Lee
r: http://www.solr-start.com/ and @solrstart > Solr popularizers community: https://www.linkedin.com/groups?gid=6713853 > > > On 15 November 2014 18:24, David Lee wrote: > > Thanks Alex. I take a look at the approach of transforming JSON > document > > before mapping it to the Sol

Re: Index complex JSON data in SOLR

2014-11-15 Thread David Lee
rces and newsletter: http://www.solr-start.com/ and @solrstart > Solr popularizers community: https://www.linkedin.com/groups?gid=6713853 > > > On 15 November 2014 17:05, David Lee wrote: > > Hi All, > > > > How do I index complex JSON data in SOLR? For example, >

Index complex JSON data in SOLR

2014-11-15 Thread David Lee
Hi All, How do I index complex JSON data in SOLR? For example, {prices:[{state:"CA", price:"101.0"}, {state:"NJ", price:"102.0"},{state:"CO", price:"102.0"}]} It's simple in ElasticSearch, but in SOLR it always reports the following error: "Error parsing JSON field value. Unexpected OBJECT_STAR