Re: Docker Image for Solr 8.10.1

2021-10-29 Thread David Smiley
It's out!  https://hub.docker.com/_/solr

Thanks for your help Andreas!

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley


On Wed, Oct 27, 2021 at 2:11 AM Andreas Hubold 
wrote:

> Hi,
>
> the docker image for the latest Solr release 8.10.1 is still missing.
> I'm waiting a bit here, so I tried to help and prepared a pull request:
> https://github.com/docker-solr/docker-solr/pull/391
>
> I've followed the nicely written upgrade steps from the docker-solr
> repo, but the travis-ci integration doesn't work anymore, and now I'm
> stuck. It would be great, if someone could take over and help with the
> Docker release.
>
> Thank you,
> Andreas
>
>
>
>


XPathEntityProcessor not indexing all instances of nodes defined in config?

2021-10-29 Thread Scott Derrick


I have the following in my config file

   
  
  
  
  
   


In the XML file is  (snippet):


 Handwritten by Mary Baker Eddy.
 This document is a draft of Eddy's poem, "Woman's 
Rights."  See page 21 of Eddy's Poems to read the published version.


There are "note" nodes at the xpath="/TEI/teiHeader//note"

but only the last is stored and searchable?  This is happening to all instances 
where there are multiple nodes in the xpath.  Only the last node is stored?

Is there something wrong with my config file?

thanks,

Scott


Re: XPathEntityProcessor not indexing all instances of nodes defined in config?

2021-10-29 Thread Scott Derrick

I figured it out!

I needed to make the note multivalued in the schema like so

  

now solr stores the different node values in a array like so

|"note":["Handwritten by Mary Baker Eddy.", "This document is a draft of Eddy's poem, \" \n Woman's Rights \n .\" See page 21 of Eddy's \n Poems \n to read the published version.", "A10004 is a draft of Eddy's poem \" Woman's Rights ,\" published on 
page 21 of Poems .", "Jesus Christ"],|


Scott

On 10/29/21 10:22 AM, Scott Derrick wrote:


I have the following in my config file

   
  
  
  
  
   


In the XML file is  (snippet):


 Handwritten by Mary Baker Eddy.
 This document is a draft of Eddy's poem, "Woman's 
Rights."  See page 21 of Eddy's Poems to read the published version.


There are "note" nodes at the xpath="/TEI/teiHeader//note"

but only the last is stored and searchable?  This is happening to all instances 
where there are multiple nodes in the xpath.  Only the last node is stored?

Is there something wrong with my config file?

thanks,

Scott




Re: Child doc question

2021-10-29 Thread Stephen Lewis Bianamara
Hi SOLR Community,

Still hoping for help on this. Is there anyone out there who understands
child docs well enough to answer the question of "yes this should work" or
"no it cannot work"?

Thanks,
Stephen

On Wed, Oct 27, 2021 at 8:51 AM Stephen Lewis Bianamara <
stephen.bianam...@gmail.com> wrote:

> Hi Folks,
>
> Wanted to follow up here. Can someone help me just answer whether what I'm
> hoping for is feasible?
>
> (a) The desired outcome is supported with the right model/queries
> (b) The desired outcome is not supported; maybe it could be in the future
> (c) The desired outcome is fundamentally unsupportable for the
> foreseeable future
>
> To summarize, the desired behavior is:
>
> - Query which can AND across child docs (i.e, return parents whos children
> match an AND query even if tokens are spread across children)
> - Query whose parents are returned based on relevance of the children
>
> In my example, obviously there is parent data being queried ("post_en"),
> but the parent data could easily be made child data if need be.
>
> Thanks!
> Stephen
>
> On Mon, Oct 25, 2021 at 6:54 AM Stephen Lewis Bianamara <
> stephen.bianam...@gmail.com> wrote:
>
>> Hi SOLR Community,
>>
>> I'm experimenting with solr 8.10 and trying to get a query pattern with
>> child docs to work. An example of a nested document structure I'd like to
>> search is below. In this example, there will only be two levels, child of
>> type:post and /comments children.
>> {
>> "id": "post1",
>> "type": "post",
>> "post_en": "I put lemon on my apple slices to keep them fresh",
>> "comments": [
>> {
>> "id": "comment1",
>> "type": "comment",
>> "comment_en": "Lime works too"
>> },
>> {
>> "id": "comment2",
>> "type": "comment",
>> "comment_en": "Does it work for pears?"
>> }
>> ]
>> }
>>
>> What I'd like is to be able to do keyword search for /lemon apple/ and
>> only return the parent; /lemon lime/ and return the parent and comment1;
>> /lemon pear/ and return the parent and comment2; /lime pear/ and return the
>> parent, comment1, and comment2. And /lime gum/ should return nothing (as if
>> it were an AND query). Additionally, this should all be done with relevance.
>>
>> I've tried a few combinations of nested docs from this documentation
>> ,
>> but am having trouble getting this to work. I wonder if I'm asking more
>> from block join/child doc transformer than it currently supports, or
>> perhaps I'm just missing something. Can someone familiar with nesting
>> documents help me out? I've included my schema below as well.
>>
>> Thanks!
>> Stephen
>>
>> 
>> 
>>   
>> 
>> > omitNorms="true" />
>> 
>> 
>> 
>> 
>> > docValues="false" />
>> 
>> > stored="true" />
>>   
>>   id
>>   
>> 
>> 
>> > />
>> > positionIncrementGap="100" autoGeneratePhraseQueries="true">
>>   
>> 
>> 
>> 
>>   
>>   
>> 
>> 
>> 
>>   
>> 
>>   
>> 
>>
>