Query speed decreased dramatically, not sure why though?
We have a query which takes the form of ".../select?q=*&sort=evalDate+desc,score+desc&start=0&rows=10" This query takes around 5 seconds to complete. I changed the query to the following; ".../select?q=[* TO NOW]&sort=evalDate+desc,score+desc&start=0&rows=10" The query now returns in around 600 milliseconds. Can any one help with explaining why [* TO NOW] has had such a big effect? -- View this message in context: http://lucene.472066.n3.nabble.com/Query-speed-decreased-dramatically-not-sure-why-though-tp1307636p1307636.html Sent from the Solr - User mailing list archive at Nabble.com.
Handling incomplete/malformed queries
Queries such as: Cat AND (i.e the query is malformed with no second term provided) Causes a ParseException. Of course I could parse the query for sanity before it is submitted to Solr but I wondered if there is a good practice way of checking/dealing with queries which are incomplete? Perhaps a library already exists to help with this? Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Handling-incomplete-malformed-queries-tp1700043p1700043.html Sent from the Solr - User mailing list archive at Nabble.com.
Wildcard weirdness
Hi, I'm trying to understand what Solr is doing when a search for O'Connor and O'Conn* is done. The first search returns 4 results, which is fine. I would expect the second search to return at least 4 (the same) results, however it fails to return any. I've debugged the query and this is the output: Debug for O'Connor : surname:O'Connor surname:O'Connor PhraseQuery(surname:"o connor") surname:"o connor" Debug for O'Conn* : surname:O'Conno* surname:O'Conno* surname:O'Conno* surname:O'Conno* So as you can see the queries are different but I don't understand why Solr changes them the way it does? Also, searching for Conno* does work. Thanks, C. -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-weirdness-tp1849362p1849362.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Wildcard weirdness
Hi Savvas, Thanks for the reply. Yep I've been trying out the Analysis tool. As you say the index does lowercase the terms. Field Name: surname Index Value: O'Connor Query Value: connor The Index Analyzer creates: o connor Which the query value above will match on. However, if the query value is conno* then there is no match. -- View this message in context: http://lucene.472066.n3.nabble.com/Wildcard-weirdness-tp1849362p1849680.html Sent from the Solr - User mailing list archive at Nabble.com.