On 28 May 2018 at 17:39, Matthias Teege <[email protected]> wrote:
> On Mon, May 28, 2018 at 05:04:11PM +0200, Mathieu Lonjaret wrote:
>
> Hi,
>
>> On 28 May 2018 at 16:52, Mathieu Lonjaret <[email protected]> wrote:
>> > On 28 May 2018 at 16:22, Mathieu Lonjaret <[email protected]>
>> > wrote:
>
>> >>> I'm not sure about the "missing" 311 images.
>> >
>> > wait, I've just realized the answer could be very simple. Did you make
>> > permanodes for all these files and images?
>> > the 'is:image' query is looking for permanodes that have a
>> > camliContent image, not images by themselves. So if you stored these
>> > 311 images without making permanodes for them, it's normal that the
>> > index finds them, but that the search query does not.
>>
>> To specifically look for file schemas (and see if we do find your
>> 36974), you can do this instead :
>> pk search -rawquery '{"constraint": {"camliType": "file"}, "Limit": -1}'
>
> ok:
>
> $ pk search -rawquery '{"constraint": {"camliType": "file"}, "Limit": -1}' |
> grep blob | wc -l
> 31085
I think the corpus stats line counts directories as "files" as well.
So let's see if the ~6000 discrepancy comes from there?
pk search -rawquery '{"constraint": {"camliType": "directory"},
"Limit": -1}' | jq -r '.blobs[].blob' | wc -l
> $ pk search -rawquery '{"constraint": {"camliType": "permanode"}, "Limit":
> -1}' | grep blob | wc -l
> 1065
>
> Not exactly :)
> Matthias
>
> --
> You received this message because you are subscribed to the Google Groups
> "Perkeep" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Perkeep" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.