Luís,

Is there a reason why splitting this up into enclosure_type, enclosure_url,
and enclosure_length would not work?


Michael Della Bitta

Applications Developer

o: +1 646 532 3062  | c: +1 917 477 7906

appinions inc.

“The Science of Influence Marketing”

18 East 41st Street

New York, NY 10017

t: @appinions <https://twitter.com/Appinions> | g+:
plus.google.com/appinions<https://plus.google.com/u/0/b/112002776285509593336/112002776285509593336/posts>
w: appinions.com <http://www.appinions.com/>


On Wed, Jul 31, 2013 at 10:43 AM, Luís Portela Afonso <
meligalet...@gmail.com> wrote:

> Hi,
>
> I'm trying to index information of RSS Feeds.
>
> So in a more detailed explanation:
>
> The RSS feed has something like:
> <enclosure url="http://www.engadget.com/podcasts/Engadget_Podcast_353.mp3";
>  length="32642192" type="audio/mpeg"/>
>
> *With my current configuration, this is working and i get a result like
> that:*
>
>
>    - enclosure:
>    [
>       - "audio/mpeg",
>       - "http://www.engadget.com/podcasts/EngadgetHD_Podcast_359.mp3";,
>       - "37521428"
>       ],
>
>
> *BUT,* this is not the result that i'm trying to reach. With that i'm not
> able to know in a "correct" way, if "audio/mpeg" is the *type*, or the *
> url,* or the *length*.
> *
> *
> *I want to reach something like:*
>
>    -
>    - enclosure:
>    {
>       - type: "a <http://www.gazzetta.it/>udio/mpeg",
>       - url:
>       "http://www.engadget.com/podcasts/EngadgetHD_Podcast_359.mp3";,
>       - length: "37521428"
>       },
>
>
>
> So, how i intend this, this should be 3 fields inside of another field, no?
>
>
> Many Thanks for the answer and the help.
>
>
> On Jul 31, 2013, at 3:34 PM, Erick Erickson <erickerick...@gmail.com>
> wrote:
>
> Nope. Solr fields are flat. Why do you want to do this? I'm
> asking because this might be an XY problems and there
> may be other possibilities.
>
> Best
> Erick
>
> On Wed, Jul 31, 2013 at 5:09 AM, Luís Portela Afonso
> <meligalet...@gmail.com> wrote:
>
> Hi, I'm trying to create a field with multiple fields inside, that is:
>
> origin:
> {
>
> htmlUrl: "http://www.gazzetta.it/";,
> streamId: "feed/http://www.gazzetta.it/rss/Home.xml";,
> title: "Gazzetta.it"
>
> },
>
>
> Get something like this. Is that possible? I'm using Solr 4.4.0.
>
> Thanks
>
>
>

Reply via email to