[ 
https://issues.apache.org/jira/browse/MINDEXER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17544404#comment-17544404
 ] 

Tamás Cservenák commented on MINDEXER-158:
------------------------------------------

For this use case (give me all....) indexer-reader is better suited, as it 
gives you "raw" index records using much simpler API.

The mentioned two SHA1 checksums are for JAR and module file, so it is possible 
that module is replacing the jar on index (so is a bug), as it differs only by 
extension. This is actually not even a maven layout in it's conventional 
sense.... will need to look into it.

> 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
>            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)

Reply via email to