You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by tedsolr <ts...@sciquest.com> on 2016/09/01 18:31:45 UTC

ShardDoc.sortFieldValues are not exposed in v5.2.1

I'm attempting to perform my own merge of IDs with a MergeStrategy in v5.2.1.
I'm a bit hamstrung because the ShardFieldSortedHitQueue is not public. When
trying to build my own priority queue I found out that the field
sortFieldValues in ShardDoc is package restricted. Now, in v6.1 I see that
both the HitQueue and the field are public.

Would it be possible to patch 5.2.1, or maybe the latest v5, to expose these
very useful objects? I can't upgrade to v6 due to the java 8 requirement.

thanks, Ted



--
View this message in context: http://lucene.472066.n3.nabble.com/ShardDoc-sortFieldValues-are-not-exposed-in-v5-2-1-tp4294336.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: ShardDoc.sortFieldValues are not exposed in v5.2.1

Posted by Shawn Heisey <ap...@elyograg.org>.
On 9/1/2016 12:31 PM, tedsolr wrote:
> I'm attempting to perform my own merge of IDs with a MergeStrategy in v5.2.1.
> I'm a bit hamstrung because the ShardFieldSortedHitQueue is not public. When
> trying to build my own priority queue I found out that the field
> sortFieldValues in ShardDoc is package restricted. Now, in v6.1 I see that
> both the HitQueue and the field are public.
>
> Would it be possible to patch 5.2.1, or maybe the latest v5, to expose these
> very useful objects? I can't upgrade to v6 due to the java 8 requirement.

I see that Shalin said it's already available in 5.5.

Upgrading from 5.2.1 to 5.5.x is a big enough leap that I wouldn't do it
without putting some time into QA, to make sure it doesn't break
anything, and to update my configs as necessary.  The 5.5 release in
particular had a lot of changes and new functionality added.  The 5.5.3
release should be out relatively soon, you might want to wait for that.

One thing you could do if you don't want to take the risk of upgrading,
and you have the ability to manually incorporate custom jars into your
project:  Check out the 5.2 branch from subversion, make whatever
changes you need, and then use "ant package" in the solr directory to
build the .tgz and .zip packages. Those packages and the jars inside
will have 5.2.2-SNAPSHOT as the version.  The URL that you need to check
out with svn is:
https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_5_2

The package that you end up with should be identical in function to
5.2.1, but will have a different version and your code change.  You
would replace Solr on your servers with that version, and use the new
solr jar(s) in your project.

I'm telling you about the svn repository for this, because "ant package"
will not work on the 5.2 branch if the checkout is from git.

If that option won't work for you, then you could do the work required
for an upgrade.

Thanks,
Shawn


Re: ShardDoc.sortFieldValues are not exposed in v5.2.1

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
This was made public in https://issues.apache.org/jira/browse/SOLR-7968
which is released already in 5.5

On Fri, Sep 2, 2016 at 12:01 AM, tedsolr <ts...@sciquest.com> wrote:

> I'm attempting to perform my own merge of IDs with a MergeStrategy in
> v5.2.1.
> I'm a bit hamstrung because the ShardFieldSortedHitQueue is not public.
> When
> trying to build my own priority queue I found out that the field
> sortFieldValues in ShardDoc is package restricted. Now, in v6.1 I see that
> both the HitQueue and the field are public.
>
> Would it be possible to patch 5.2.1, or maybe the latest v5, to expose
> these
> very useful objects? I can't upgrade to v6 due to the java 8 requirement.
>
> thanks, Ted
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/ShardDoc-
> sortFieldValues-are-not-exposed-in-v5-2-1-tp4294336.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Regards,
Shalin Shekhar Mangar.