jira-importer opened a new issue, #579:
URL: https://github.com/apache/maven-indexer/issues/579

   **[Matteo Di 
Pierro](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER289752)**
 opened 
**[MINDEXER-158](https://issues.apache.org/jira/browse/MINDEXER-158?redirect=false)**
 and commented
   
   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 
   
   ```java
   curl 
https://search.maven.org/solrsearch/select?q="1:d62bd1ef6a9aee74557bd59fb96030fd52cf2fc1";
   ```
   
   I get 
   
    
   
   ```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"]}]}}
 
   ```
   
    
   
    
   
   I am instead able to find inside the index the sha1 
3f4de0db59b9085e41cc11c8c2914c427cc848e1 related to the same pkg, as shown here:
   
   ```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"]}]}}
   ```
   
   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
   
    
   
   
   ---
   
   **Attachments:**
   - 
[mavensnippet.java](https://issues.apache.org/jira/secure/attachment/13043938/mavensnippet.java)
 (_7.44 kB_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to