Commit Updates Without Solr Restart

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Commit Updates Without Solr Restart

Joel Timothy Norman, Mr
Hi,


I am attempting to commit solr updates without a restart of the solr service.  From what I have seen/read this should be completely possible using the curl "commit stuff" statement.  However, I cannot get it to work.  What are other people using?


Thanks,
Joel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: Commit Updates Without Solr Restart

Steven McPhillips
Hi Joel,

We commit to solr using this method. Your commit request might be timing out: we set a timeout of 7200 seconds (although this might be more applicable to optimize requests... can't remember!). If this is your problem, your curl process might be exiting with status code 28. We use perl's LWP module for this, so the information may not be completely applicable to curl. Also, make sure you're sending a POST, not a GET.

We just POST an xml document containing "<commit />" to the solr update handler, and it works ok for us. In any case, checking curl's exit code should help

Steven

________________________________________
From: Joel Timothy Norman, Mr [[hidden email]]
Sent: Saturday, 4 October 2008 5:23 AM
To: [hidden email]
Subject: [VuFind-Tech] Commit Updates Without Solr Restart

Hi,


I am attempting to commit solr updates without a restart of the solr service.  From what I have seen/read this should be completely possible using the curl "commit stuff" statement.  However, I cannot get it to work.  What are other people using?


Thanks,
Joel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: Commit Updates Without Solr Restart

wsgrah
Administrator
You don't actually need this stuff any more if you're using SolrMarc,
but it looks like an issue with the import script is over riding the
properties file. I'll update this later today, but you can set the
-Dsolr.hosturl parameter in the script (or delete it and set it in the
import/solrmarc/import.properties) file. You'll note the parameter
should be set to something like http://localhost:8080/solr/biblio (if
you're using the trunk).

Wayne

Steven McPhillips wrote:

> Hi Joel,
>
> We commit to solr using this method. Your commit request might be timing out: we set a timeout of 7200 seconds (although this might be more applicable to optimize requests... can't remember!). If this is your problem, your curl process might be exiting with status code 28. We use perl's LWP module for this, so the information may not be completely applicable to curl. Also, make sure you're sending a POST, not a GET.
>
> We just POST an xml document containing "<commit />" to the solr update handler, and it works ok for us. In any case, checking curl's exit code should help
>
> Steven
>
> ________________________________________
> From: Joel Timothy Norman, Mr [[hidden email]]
> Sent: Saturday, 4 October 2008 5:23 AM
> To: [hidden email]
> Subject: [VuFind-Tech] Commit Updates Without Solr Restart
>
> Hi,
>
>
> I am attempting to commit solr updates without a restart of the solr service.  From what I have seen/read this should be completely possible using the curl "commit stuff" statement.  However, I cannot get it to work.  What are other people using?
>
>
> Thanks,
> Joel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>
>  

--
/**
  * Wayne Graham
  * Earl Gregg Swem Library
  * PO Box 8794
  * Williamsburg, VA 23188
  * 757.221.3112
  * http://swem.wm.edu/blogs/waynegraham/
  * http://www.liquidfoot.com
  */



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: Commit Updates Without Solr Restart

Barnett, Jeffrey
Wayne, could you clarify the precedence of script vs properties parameters.  The script I'm using (r1064) says:

RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -Dsolrmarc.path=$SOLRMA
RC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -Dsolr.optimize_at_end=false -Dsol
r.hosturl= -jar $JAR_FILE $PROPERTIES_FILE"

(note "-Dsolr.hosturl= ")

import/solrmarc/import.properties contains:
# Path to your solr instance
solr.indexer = org.solrmarc.index.VuFindIndexer
solr.indexer.properties = vufind.properties
solr.optimize_at_end = true

#optional URL of running solr search engine to cause updates to be recognized.
#solr.hosturl = http://localhost:8080/solr
solr.hosturl = http://localhost:8098/solr/biblio

Updates are NOT being recognized, and the index has a mixture or large and small segments, which I take to mean it has NOT been optimized.  Which file or files need to be changed so that the opposite is true:

PS:  I also supplied a delete_bibs file, and the log reports
" INFO [main] (MarcImporter.java:639) - Deleted 4 records"

But the records are still there when viewed through the admin port.

-----Original Message-----
From: Wayne Graham [mailto:[hidden email]]
Sent: Tuesday, October 07, 2008 12:35 PM
To: Steven McPhillips
Cc: [hidden email]
Subject: Re: [VuFind-Tech] Commit Updates Without Solr Restart

You don't actually need this stuff any more if you're using SolrMarc,
but it looks like an issue with the import script is over riding the
properties file. I'll update this later today, but you can set the
-Dsolr.hosturl parameter in the script (or delete it and set it in the
import/solrmarc/import.properties) file. You'll note the parameter
should be set to something like http://localhost:8080/solr/biblio (if
you're using the trunk).

Wayne

Steven McPhillips wrote:

> Hi Joel,
>
> We commit to solr using this method. Your commit request might be timing out: we set a timeout of 7200 seconds (although this might be more applicable to optimize requests... can't remember!). If this is your problem, your curl process might be exiting with status code 28. We use perl's LWP module for this, so the information may not be completely applicable to curl. Also, make sure you're sending a POST, not a GET.
>
> We just POST an xml document containing "<commit />" to the solr update handler, and it works ok for us. In any case, checking curl's exit code should help
>
> Steven
>
> ________________________________________
> From: Joel Timothy Norman, Mr [[hidden email]]
> Sent: Saturday, 4 October 2008 5:23 AM
> To: [hidden email]
> Subject: [VuFind-Tech] Commit Updates Without Solr Restart
>
> Hi,
>
>
> I am attempting to commit solr updates without a restart of the solr service.  From what I have seen/read this should be completely possible using the curl "commit stuff" statement.  However, I cannot get it to work.  What are other people using?
>
>
> Thanks,
> Joel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>
>

--
/**
  * Wayne Graham
  * Earl Gregg Swem Library
  * PO Box 8794
  * Williamsburg, VA 23188
  * 757.221.3112
  * http://swem.wm.edu/blogs/waynegraham/
  * http://www.liquidfoot.com
  */



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: Commit Updates Without Solr Restart

wsgrah
Administrator
Items in the script will override what's in the import.properties file.
The line should read

RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -Dsolrmarc.path=$SOLRMARC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -jar $JAR_FILE $PROPERTIES_FILE"

Wayne

Barnett, Jeffrey wrote:

> Wayne, could you clarify the precedence of script vs properties parameters.  The script I'm using (r1064) says:
>
> RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -Dsolrmarc.path=$SOLRMA
> RC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -Dsolr.optimize_at_end=false -Dsol
> r.hosturl= -jar $JAR_FILE $PROPERTIES_FILE"
>
> (note "-Dsolr.hosturl= ")
>
> import/solrmarc/import.properties contains:
> # Path to your solr instance
> solr.indexer = org.solrmarc.index.VuFindIndexer
> solr.indexer.properties = vufind.properties
> solr.optimize_at_end = true
>
> #optional URL of running solr search engine to cause updates to be recognized.
> #solr.hosturl = http://localhost:8080/solr
> solr.hosturl = http://localhost:8098/solr/biblio
>
> Updates are NOT being recognized, and the index has a mixture or large and small segments, which I take to mean it has NOT been optimized.  Which file or files need to be changed so that the opposite is true:
>
> PS:  I also supplied a delete_bibs file, and the log reports
> " INFO [main] (MarcImporter.java:639) - Deleted 4 records"
>
> But the records are still there when viewed through the admin port.
>
> -----Original Message-----
> From: Wayne Graham [mailto:[hidden email]]
> Sent: Tuesday, October 07, 2008 12:35 PM
> To: Steven McPhillips
> Cc: [hidden email]
> Subject: Re: [VuFind-Tech] Commit Updates Without Solr Restart
>
> You don't actually need this stuff any more if you're using SolrMarc,
> but it looks like an issue with the import script is over riding the
> properties file. I'll update this later today, but you can set the
> -Dsolr.hosturl parameter in the script (or delete it and set it in the
> import/solrmarc/import.properties) file. You'll note the parameter
> should be set to something like http://localhost:8080/solr/biblio (if
> you're using the trunk).
>
> Wayne
>
> Steven McPhillips wrote:
>  
>> Hi Joel,
>>
>> We commit to solr using this method. Your commit request might be timing out: we set a timeout of 7200 seconds (although this might be more applicable to optimize requests... can't remember!). If this is your problem, your curl process might be exiting with status code 28. We use perl's LWP module for this, so the information may not be completely applicable to curl. Also, make sure you're sending a POST, not a GET.
>>
>> We just POST an xml document containing "<commit />" to the solr update handler, and it works ok for us. In any case, checking curl's exit code should help
>>
>> Steven
>>
>> ________________________________________
>> From: Joel Timothy Norman, Mr [[hidden email]]
>> Sent: Saturday, 4 October 2008 5:23 AM
>> To: [hidden email]
>> Subject: [VuFind-Tech] Commit Updates Without Solr Restart
>>
>> Hi,
>>
>>
>> I am attempting to commit solr updates without a restart of the solr service.  From what I have seen/read this should be completely possible using the curl "commit stuff" statement.  However, I cannot get it to work.  What are other people using?
>>
>>
>> Thanks,
>> Joel
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Vufind-tech mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Vufind-tech mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>>
>>
>>    
>
> --
> /**
>   * Wayne Graham
>   * Earl Gregg Swem Library
>   * PO Box 8794
>   * Williamsburg, VA 23188
>   * 757.221.3112
>   * http://swem.wm.edu/blogs/waynegraham/
>   * http://www.liquidfoot.com
>   */
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech
>
>  

--
/**
  * Wayne Graham
  * Earl Gregg Swem Library
  * PO Box 8794
  * Williamsburg, VA 23188
  * 757.221.3112
  * http://swem.wm.edu/blogs/waynegraham/
  * http://www.liquidfoot.com
  */



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: Commit Updates Without Solr Restart

Andrew Nagy-2
Oh yeah - I made this change locally and never checked it in.  I will checkin the fix.

Andrew

> -----Original Message-----
> From: Wayne Graham [mailto:[hidden email]]
> Sent: Tuesday, October 07, 2008 4:20 PM
> To: Barnett, Jeffrey
> Cc: [hidden email]
> Subject: Re: [VuFind-Tech] Commit Updates Without Solr Restart
>
> Items in the script will override what's in the import.properties file.
> The line should read
>
> RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -
> Dsolrmarc.path=$SOLRMARC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -
> jar $JAR_FILE $PROPERTIES_FILE"
>
> Wayne
>
> Barnett, Jeffrey wrote:
> > Wayne, could you clarify the precedence of script vs properties
> parameters.  The script I'm using (r1064) says:
> >
> > RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -
> Dsolrmarc.path=$SOLRMA
> > RC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -
> Dsolr.optimize_at_end=false -Dsol
> > r.hosturl= -jar $JAR_FILE $PROPERTIES_FILE"
> >
> > (note "-Dsolr.hosturl= ")
> >
> > import/solrmarc/import.properties contains:
> > # Path to your solr instance
> > solr.indexer = org.solrmarc.index.VuFindIndexer
> > solr.indexer.properties = vufind.properties
> > solr.optimize_at_end = true
> >
> > #optional URL of running solr search engine to cause updates to be
> recognized.
> > #solr.hosturl = http://localhost:8080/solr
> > solr.hosturl = http://localhost:8098/solr/biblio
> >
> > Updates are NOT being recognized, and the index has a mixture or
> large and small segments, which I take to mean it has NOT been
> optimized.  Which file or files need to be changed so that the opposite
> is true:
> >
> > PS:  I also supplied a delete_bibs file, and the log reports
> > " INFO [main] (MarcImporter.java:639) - Deleted 4 records"
> >
> > But the records are still there when viewed through the admin port.
> >
> > -----Original Message-----
> > From: Wayne Graham [mailto:[hidden email]]
> > Sent: Tuesday, October 07, 2008 12:35 PM
> > To: Steven McPhillips
> > Cc: [hidden email]
> > Subject: Re: [VuFind-Tech] Commit Updates Without Solr Restart
> >
> > You don't actually need this stuff any more if you're using SolrMarc,
> > but it looks like an issue with the import script is over riding the
> > properties file. I'll update this later today, but you can set the
> > -Dsolr.hosturl parameter in the script (or delete it and set it in
> the
> > import/solrmarc/import.properties) file. You'll note the parameter
> > should be set to something like http://localhost:8080/solr/biblio (if
> > you're using the trunk).
> >
> > Wayne
> >
> > Steven McPhillips wrote:
> >
> >> Hi Joel,
> >>
> >> We commit to solr using this method. Your commit request might be
> timing out: we set a timeout of 7200 seconds (although this might be
> more applicable to optimize requests... can't remember!). If this is
> your problem, your curl process might be exiting with status code 28.
> We use perl's LWP module for this, so the information may not be
> completely applicable to curl. Also, make sure you're sending a POST,
> not a GET.
> >>
> >> We just POST an xml document containing "<commit />" to the solr
> update handler, and it works ok for us. In any case, checking curl's
> exit code should help
> >>
> >> Steven
> >>
> >> ________________________________________
> >> From: Joel Timothy Norman, Mr [[hidden email]]
> >> Sent: Saturday, 4 October 2008 5:23 AM
> >> To: [hidden email]
> >> Subject: [VuFind-Tech] Commit Updates Without Solr Restart
> >>
> >> Hi,
> >>
> >>
> >> I am attempting to commit solr updates without a restart of the solr
> service.  From what I have seen/read this should be completely possible
> using the curl "commit stuff" statement.  However, I cannot get it to
> work.  What are other people using?
> >>
> >>
> >> Thanks,
> >> Joel
> >>
> >>
> >> --------------------------------------------------------------------
> -----
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Vufind-tech mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/vufind-tech
> >>
> >> --------------------------------------------------------------------
> -----
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Vufind-tech mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/vufind-tech
> >>
> >>
> >>
> >
> > --
> > /**
> >   * Wayne Graham
> >   * Earl Gregg Swem Library
> >   * PO Box 8794
> >   * Williamsburg, VA 23188
> >   * 757.221.3112
> >   * http://swem.wm.edu/blogs/waynegraham/
> >   * http://www.liquidfoot.com
> >   */
> >
> >
> >
> > ---------------------------------------------------------------------
> ----
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Vufind-tech mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/vufind-tech
> >
> >
>
> --
> /**
>   * Wayne Graham
>   * Earl Gregg Swem Library
>   * PO Box 8794
>   * Williamsburg, VA 23188
>   * 757.221.3112
>   * http://swem.wm.edu/blogs/waynegraham/
>   * http://www.liquidfoot.com
>   */
>
>
>
> -----------------------------------------------------------------------
> --
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: Commit Updates Without Solr Restart

Andrew Nagy-2
In reply to this post by wsgrah
I just updated the import.sh script.  I will also write all output to an import.log file and an error.log file.

Andrew

> -----Original Message-----
> From: Wayne Graham [mailto:[hidden email]]
> Sent: Tuesday, October 07, 2008 4:20 PM
> To: Barnett, Jeffrey
> Cc: [hidden email]
> Subject: Re: [VuFind-Tech] Commit Updates Without Solr Restart
>
> Items in the script will override what's in the import.properties file.
> The line should read
>
> RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -
> Dsolrmarc.path=$SOLRMARC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -
> jar $JAR_FILE $PROPERTIES_FILE"
>
> Wayne
>
> Barnett, Jeffrey wrote:
> > Wayne, could you clarify the precedence of script vs properties
> parameters.  The script I'm using (r1064) says:
> >
> > RUN_CMD="$JAVA $INDEX_OPTIONS -Dsolr.core.name=$SOLRCORE -
> Dsolrmarc.path=$SOLRMA
> > RC_HOME -Dsolr.path=$SOLR_HOME -Dmarc.path=$1 -
> Dsolr.optimize_at_end=false -Dsol
> > r.hosturl= -jar $JAR_FILE $PROPERTIES_FILE"
> >
> > (note "-Dsolr.hosturl= ")
> >
> > import/solrmarc/import.properties contains:
> > # Path to your solr instance
> > solr.indexer = org.solrmarc.index.VuFindIndexer
> > solr.indexer.properties = vufind.properties
> > solr.optimize_at_end = true
> >
> > #optional URL of running solr search engine to cause updates to be
> recognized.
> > #solr.hosturl = http://localhost:8080/solr
> > solr.hosturl = http://localhost:8098/solr/biblio
> >
> > Updates are NOT being recognized, and the index has a mixture or
> large and small segments, which I take to mean it has NOT been
> optimized.  Which file or files need to be changed so that the opposite
> is true:
> >
> > PS:  I also supplied a delete_bibs file, and the log reports
> > " INFO [main] (MarcImporter.java:639) - Deleted 4 records"
> >
> > But the records are still there when viewed through the admin port.
> >
> > -----Original Message-----
> > From: Wayne Graham [mailto:[hidden email]]
> > Sent: Tuesday, October 07, 2008 12:35 PM
> > To: Steven McPhillips
> > Cc: [hidden email]
> > Subject: Re: [VuFind-Tech] Commit Updates Without Solr Restart
> >
> > You don't actually need this stuff any more if you're using SolrMarc,
> > but it looks like an issue with the import script is over riding the
> > properties file. I'll update this later today, but you can set the
> > -Dsolr.hosturl parameter in the script (or delete it and set it in
> the
> > import/solrmarc/import.properties) file. You'll note the parameter
> > should be set to something like http://localhost:8080/solr/biblio (if
> > you're using the trunk).
> >
> > Wayne
> >
> > Steven McPhillips wrote:
> >
> >> Hi Joel,
> >>
> >> We commit to solr using this method. Your commit request might be
> timing out: we set a timeout of 7200 seconds (although this might be
> more applicable to optimize requests... can't remember!). If this is
> your problem, your curl process might be exiting with status code 28.
> We use perl's LWP module for this, so the information may not be
> completely applicable to curl. Also, make sure you're sending a POST,
> not a GET.
> >>
> >> We just POST an xml document containing "<commit />" to the solr
> update handler, and it works ok for us. In any case, checking curl's
> exit code should help
> >>
> >> Steven
> >>
> >> ________________________________________
> >> From: Joel Timothy Norman, Mr [[hidden email]]
> >> Sent: Saturday, 4 October 2008 5:23 AM
> >> To: [hidden email]
> >> Subject: [VuFind-Tech] Commit Updates Without Solr Restart
> >>
> >> Hi,
> >>
> >>
> >> I am attempting to commit solr updates without a restart of the solr
> service.  From what I have seen/read this should be completely possible
> using the curl "commit stuff" statement.  However, I cannot get it to
> work.  What are other people using?
> >>
> >>
> >> Thanks,
> >> Joel
> >>
> >>
> >> --------------------------------------------------------------------
> -----
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Vufind-tech mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/vufind-tech
> >>
> >> --------------------------------------------------------------------
> -----
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Vufind-tech mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/vufind-tech
> >>
> >>
> >>
> >
> > --
> > /**
> >   * Wayne Graham
> >   * Earl Gregg Swem Library
> >   * PO Box 8794
> >   * Williamsburg, VA 23188
> >   * 757.221.3112
> >   * http://swem.wm.edu/blogs/waynegraham/
> >   * http://www.liquidfoot.com
> >   */
> >
> >
> >
> > ---------------------------------------------------------------------
> ----
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Vufind-tech mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/vufind-tech
> >
> >
>
> --
> /**
>   * Wayne Graham
>   * Earl Gregg Swem Library
>   * PO Box 8794
>   * Williamsburg, VA 23188
>   * 757.221.3112
>   * http://swem.wm.edu/blogs/waynegraham/
>   * http://www.liquidfoot.com
>   */
>
>
>
> -----------------------------------------------------------------------
> --
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-tech

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech