You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamás Cservenák (Jira)" <ji...@apache.org> on 2022/05/31 14:00:00 UTC

[jira] [Assigned] (MINDEXER-158) IndexSearcher doesn't return all sha1

     [ https://issues.apache.org/jira/browse/MINDEXER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamás Cservenák reassigned MINDEXER-158:
----------------------------------------

    Assignee: Tamás Cservenák

> IndexSearcher doesn't return all sha1
> -------------------------------------
>
>                 Key: MINDEXER-158
>                 URL: https://issues.apache.org/jira/browse/MINDEXER-158
>             Project: Maven Indexer
>          Issue Type: Bug
>            Reporter: Matteo Di Pierro
>            Assignee: Tamás Cservenák
>            Priority: Major
>         Attachments: mavensnippet.java
>
>
> I'm following your example [here|https://github.com/apache/maven-indexer/blob/master/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/index/examples/BasicUsageExample.java] and I am successfully able to download and open the index. However, I cannot find the sha1 d62bd1ef6a9aee74557bd59fb96030fd52cf2fc1, while if I run 
> {code:java}
> curl https://search.maven.org/solrsearch/select?q="1:d62bd1ef6a9aee74557bd59fb96030fd52cf2fc1"{code}
> I get 
>  
> {code:java}
> {"responseHeader":{"status":0,"QTime":0,"params":{"q":"1:d62bd1ef6a9aee74557bd59fb96030fd52cf2fc1","core":"","indent":"off","fl":"id,g,a,v,p,ec,timestamp,tags","start":"","sort":"score desc,timestamp desc,g asc,a asc,v desc","rows":"20","wt":"json","version":"2.2"}},"response":{"numFound":1,"start":0,"docs":[{"id":"org.springframework:spring-webmvc:5.3.17","g":"org.springframework","a":"spring-webmvc","v":"5.3.17","p":"jar","timestamp":1647516151000,"ec":[".module","-sources.jar",".pom","-javadoc.jar",".jar"],"tags":["spring"]}]}} {code}
>  
>  
> I am instead able to find inside the index the sha1 3f4de0db59b9085e41cc11c8c2914c427cc848e1 related to the same pkg, as shown here:
> {code:java}
> curl https://search.maven.org/solrsearch/select?q="1:3f4de0db59b9085e41cc11c8c2914c427cc848e1"
> {"responseHeader":{"status":0,"QTime":0,"params":{"q":"1:3f4de0db59b9085e41cc11c8c2914c427cc848e1","core":"","indent":"off","fl":"id,g,a,v,p,ec,timestamp,tags","start":"","sort":"score desc,timestamp desc,g asc,a asc,v desc","rows":"20","wt":"json","version":"2.2"}},"response":{"numFound":1,"start":0,"docs":[{"id":"org.springframework:spring-webmvc:5.3.17","g":"org.springframework","a":"spring-webmvc","v":"5.3.17","p":"jar","timestamp":1647516151000,"ec":[".module","-sources.jar",".pom","-javadoc.jar",".jar"],"tags":["spring"]}]}}{code}
> Can you please help me to retrieve all the sha1 from the index?
> I attach here the code I'm using [^mavensnippet.java].
> Thank you very much
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)