Re: what's in cursorMark

2018-10-01 Thread Li, Yi
Hi,

Did you just do base84 decoding?

Thanks,
Yi

On 10/1/18, 9:41 AM, "Vincenzo D'Amore"  wrote:

Hi Yi,

have you tried to decode the string?

AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3

seems to be only:

? favoritePlace/f85333c1-c444-4cfb-afd7-37281a07b0f7



On Mon, Oct 1, 2018 at 3:37 PM Li, Yi  wrote:

> Hi,
>
> cursorMark appears as something like
> AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3
>
> and the document says it is “Base64 encoded serialized representation of
> the sort values encapsulated by this object”
>
> I like to know if I can decode and what content I will see in there.
>
> For example, If there is an object as a json:
> {
> “id”:”123”,
> “name”:”objectname”,
> “secret”:”my secret”
> }
> if I search id:123, and only that object returned with a cursorMark, will
> I be able to decode the cursorMark and get that secret?
>
> Thanks,
> Yi
>


-- 
Vincenzo D'Amore




Re: what's in cursorMark

2018-10-01 Thread Shawn Heisey

On 10/1/2018 7:36 AM, Li, Yi wrote:

cursorMark appears as something like 
AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3

and the document says it is “Base64 encoded serialized representation of the 
sort values encapsulated by this object”

I like to know if I can decode and what content I will see in there.


I did a test with the techproducts example, with a sort of "id asc".  
The "nextCursorMark" value was AoEjR0JQ which is base64 encoding for a 
value that includes the text "GBP" which was the value in the uniqueKey 
field (id) for the last entry on the page.


Then I tried it again with a different sort -- "cat desc,id asc" ... and 
the decoded nextCursorMark value included the values for *both* sort 
fields found in the last document on the page.


The value(s) in nextCursorMark are used to build range filter(s) in the 
query.  The rest of the query can likely be satisfied from Solr's 
caches.  This is how cursorMark gets good performance.


Vincenzo gave you the decoded value of your nextCursorMark string.  You 
can get this yourself by running it through a base64 decoder.


Thanks,
Shawn



Re: what's in cursorMark

2018-10-01 Thread Stefan Matheis
The question might be .. what for?


-Stefan

On Mon, Oct 1, 2018, 3:36 PM Li, Yi  wrote:

> Hi,
>
> cursorMark appears as something like
> AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3
>
> and the document says it is “Base64 encoded serialized representation of
> the sort values encapsulated by this object”
>
> I like to know if I can decode and what content I will see in there.
>
> For example, If there is an object as a json:
> {
> “id”:”123”,
> “name”:”objectname”,
> “secret”:”my secret”
> }
> if I search id:123, and only that object returned with a cursorMark, will
> I be able to decode the cursorMark and get that secret?
>
> Thanks,
> Yi
>


Re: what's in cursorMark

2018-10-01 Thread Vincenzo D'Amore
Hi Yi,

have you tried to decode the string?

AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3

seems to be only:

? favoritePlace/f85333c1-c444-4cfb-afd7-37281a07b0f7



On Mon, Oct 1, 2018 at 3:37 PM Li, Yi  wrote:

> Hi,
>
> cursorMark appears as something like
> AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3
>
> and the document says it is “Base64 encoded serialized representation of
> the sort values encapsulated by this object”
>
> I like to know if I can decode and what content I will see in there.
>
> For example, If there is an object as a json:
> {
> “id”:”123”,
> “name”:”objectname”,
> “secret”:”my secret”
> }
> if I search id:123, and only that object returned with a cursorMark, will
> I be able to decode the cursorMark and get that secret?
>
> Thanks,
> Yi
>


-- 
Vincenzo D'Amore


what's in cursorMark

2018-10-01 Thread Li, Yi
Hi,

cursorMark appears as something like 
AoE/E2Zhdm9yaXRlUGxhY2UvZjg1MzMzYzEtYzQ0NC00Y2ZiLWFmZDctMzcyODFhMDdiMGY3

and the document says it is “Base64 encoded serialized representation of the 
sort values encapsulated by this object”

I like to know if I can decode and what content I will see in there.

For example, If there is an object as a json:
{
“id”:”123”,
“name”:”objectname”,
“secret”:”my secret”
}
if I search id:123, and only that object returned with a cursorMark, will I be 
able to decode the cursorMark and get that secret?

Thanks,
Yi