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

Yonik Seeley commented on SOLR-9506:
------------------------------------

Pretty simple to try out:
{code}
bin/solr start -e techproducts

http://localhost:8983/solr/techproducts/query?q=*:*
  "response":{"numFound":32,"start":0,"docs":[

http://localhost:8983/solr/techproducts/get?getFingerprint=9223372036854775807
{
  "fingerprint":{
    "maxVersionSpecified":9223372036854775807,
    "maxVersionEncountered":1548538118066405376,
    "maxInHash":1548538118066405376,
    "versionsHash":8803836617561505377,
    "numVersions":32,
    "numDocs":32,
    "maxDoc":32}}

curl http://localhost:8983/solr/techproducts/update?commit=true -H 
"Content-Type: text/xml" -d '<delete><id>apple</id></delete>'

# this shows that the delete is visibie
http://localhost:8983/solr/techproducts/query?q=*:*
  "response":{"numFound":31,"start":0,"docs":[

#fingerprint returns the same thing
http://localhost:8983/solr/techproducts/get?getFingerprint=9223372036854775807
{
  "fingerprint":{
    "maxVersionSpecified":9223372036854775807,
    "maxVersionEncountered":1548538118066405376,
    "maxInHash":1548538118066405376,
    "versionsHash":8803836617561505377,
    "numVersions":32,
    "numDocs":32,
    "maxDoc":32}}

bin/solr stop -all
bin/solr start -e techproducts

#after a restart, fingerprint returns something different
http://localhost:8983/solr/techproducts/get?getFingerprint=9223372036854775807
{
  "fingerprint":{
    "maxVersionSpecified":9223372036854775807,
    "maxVersionEncountered":1548538118066405376,
    "maxInHash":1548538118066405376,
    "versionsHash":-1315083666674066080,
    "numVersions":31,
    "numDocs":31,
    "maxDoc":32}}

{code}

> cache IndexFingerprint for each segment
> ---------------------------------------
>
>                 Key: SOLR-9506
>                 URL: https://issues.apache.org/jira/browse/SOLR-9506
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>         Attachments: SOLR-9506.patch, SOLR-9506.patch, SOLR-9506_POC.patch
>
>
> The IndexFingerprint is cached per index searcher. it is quite useless during 
> high throughput indexing. If the fingerprint is cached per segment it will 
> make it vastly more efficient to compute the fingerprint



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to