Re: [Dspace-tech] Query Solr with special characters
Hi all, I found the fix for this issue and if anyone needs the fix, I'll explain. How I explained before, my idea was escape special characters before they will be sent to solr. This process is being done in the following classes: /dspace-1.7.2-src-release/dspace-discovery/dspace-discovery-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/discovery/AbstractSearch.java /dspace-1.7.2-src-release/dspace-discovery/dspace-discovery-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/discovery/AbstractSearch.java In this classes I added escapeQueryChars function from solrj, who adds escape char before special characters on a string, and returns it well formatted. Next step is use this function in generateURL function: protected String generateURL(MapString, String parameters) throws UIException { String query = getQuery(); if (!.equals(query)) { query = escapeQueryChars(query); parameters.put(query, encodeForURL(query)); } Of course, if anyone knows a better solution will be welcome. Regards On 13/11/14 08:07, Ruben wrote: Hi Adan, It seems well, but it changes the type of the search that is executed. I think surrounding the query with quotes makes solr search the literal string, and only returns the searches which contains the exactly string entered. If you escape ? character, the results list is different because executes a normal search, I don't know if I explained well Also thanks because it's interesting to learn tricks to search. On 12/11/14 17:20, Adan Roman wrote: Hi Rubén Try surronding the query between quotes. This can work in most cases, unless the special character is a quote, of course regards Hi, I noticed that if I use special characters in advanced search, solr doesn't return any results. I read in Lucene documentation that is possible to escape these special characters adding \ in front of them, and I will ask you if it's possible to modify the string query adding the escape character before send it to search engine, and if it's possible, how can I do it. Thanks in advance http://www.avast.com/ El software de antivirus Avast ha analizado este correo electrónico en busca de virus. www.avast.com http://www.avast.com/ -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette:https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Rubén Boada Tècnic de Càlcul i Aplicacions Consorci de Serveis Universitaris de Catalunya (CSUC) Gran Capità, 2 (Edifici Nexus).08034 Barcelona T.93 551 62 13.ruben.bo...@csuc.cat www.csuc.cat .Twitter @CSUC_info.Facebook.Linkedin Subscriu-te al butlletí; (www.csuc.cat/butlleti) -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Rubén Boada Tècnic de Càlcul i Aplicacions Consorci de Serveis Universitaris de Catalunya (CSUC) Gran Capità, 2 (Edifici Nexus).08034 Barcelona T.93 551 62 13.ruben.bo...@csuc.cat www.csuc.cat .Twitter @CSUC_info.Facebook.Linkedin Subscriu-te al butlletí; (www.csuc.cat/butlleti) -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette:
[Dspace-tech] Input on Developer Track at OR2015
Hi all, Those of you who saw the announcement for the OR2015 Call for Proposals [1] may have noticed the '2015 Developer Track' section. This is a new track that will run concurrently with the main conference; it will focus on content that is of interest to the developer community. David Wilcox (copied in), Product Manager for Fedora, is helping to organize this OR2015 Developer Track. With this in mind, David is looking for feedback/input on what this track should look like. What kinds of sessions would you be interested in hosting or attending? What kinds of content would you like to see covered and explored? Should everything be planned in advance, or do you prefer a more un-conference style approach? Any feedback would be appreciated. You may provide feedback by emailing David directly (dwil...@duraspace.org) or by hitting reply all on this discussion thread. Thanks, Tim Donohue [1] http://www.or2015.net/call-for-proposals/ -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Internal system error
We have been receiving an internal system error over the past few days (see attachment), intermittently and now it appears to be occurring more frequently. Not sure where I should look first to address. I have been doing some configuring in the command line, and recently set up SMTP email settings, though I didn’t notice any issues directly following reconfiguration. Thanks! Mary[cid:48F71812-AA3F-4DCD-A422-08847830C11D@ucmerced.edu] Mary Weppler Archivist, Design Construction UC Merced 209.228.0402 209.205.8163 (cell) -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Internal system error
You need to look in your logs. It looks like you get this error when you are logging in. if you have a linux machine bring up a terminal window run the command tail -f todaysLogFile then log in and generate the error. Cut and past the resulting log error back to the user group. On Thu, 2014-11-13 at 19:28 +, Mary Weppler-Selear wrote: We have been receiving an internal system error over the past few days (see attachment), intermittently and now it appears to be occurring more frequently. Not sure where I should look first to address. I have been doing some configuring in the command line, and recently set up SMTP email settings, though I didn’t notice any issues directly following reconfiguration. Thanks! Mary Mary Weppler Archivist, Design Construction UC Merced 209.228.0402 209.205.8163 (cell) -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette