Query parser cuts last letter from search term.
Hi, I have strange problem with Solr query. I added to my Solr Index new document with "behave!" word inside content. While I was trying to search this document using "behave" search term it was impossible. Only "behave!" returns result. Additionaly search debug returns following information: debug: { rawquerystring: "behave", querystring: "behave", parsedquery: "allText:behav", parsedquery_toString: "allText:behav", Does anybody know how to deal with such case? Below is my field type definition. Field definition: where: characters.txt § => ALPHA $ => ALPHA % => ALPHA & => ALPHA / => ALPHA ( => ALPHA ) => ALPHA = => ALPHA ? => ALPHA + => ALPHA * => ALPHA # => ALPHA ' => ALPHA - => ALPHA < => ALPHA > => ALPHA -- View this message in context: http://lucene.472066.n3.nabble.com/Query-parser-cuts-last-letter-from-search-term-tp4053432.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Query parser cuts last letter from search term.
So why Solr does not return proper document? -- View this message in context: http://lucene.472066.n3.nabble.com/Query-parser-cuts-last-letter-from-search-term-tp4053432p4053435.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Query parser cuts last letter from search term.
The problem was connected with filter order. WordDelimiterFilter should be put before others. Thanks for your help. -- View this message in context: http://lucene.472066.n3.nabble.com/Query-parser-cuts-last-letter-from-search-term-tp4053432p4053736.html Sent from the Solr - User mailing list archive at Nabble.com.
Spell check component does not return any suggestions
Hi, I configured index-based spell check component and unexpected problem occurs. *CASE 1: * I added two documents with following content: 1. handbuch 2. hanbuch The suggestions are returned for both terms: e.g. handbuch -> hanbuch and hanbuch-> handbuch. Comment: Works as expected. *CASE 2: * I added additional 5 documets with following content: 1. hanbuch In this case only when I search for handbuch I get suggestion for hanbuch. In the opposite direction there is no suggestion returned. *Desired behaviour:* In both direction suggestion is returned. Like in Case 1: handbuch -> hanbuch and hanbuch-> handbuch I have following configuration: true true 1 .01 Additionaly when I turned spellcheck.onlyMorePopular to false no suggestion was returned in any of mentioned cases. -- View this message in context: http://lucene.472066.n3.nabble.com/Spell-check-component-does-not-return-any-suggestions-tp4053757.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Spell check component does not return any suggestions
I tried to add spellcheck.alternativeTermCount=5 but still no suggestion has been found. -- View this message in context: http://lucene.472066.n3.nabble.com/Spell-check-component-does-not-return-any-suggestions-tp4053757p4053772.html Sent from the Solr - User mailing list archive at Nabble.com.
Facets with OR clause
Hi, my request contains following term: The are 3 facets: groups, locations, categories. When I select some items then I see such syntax in my request. fq=groups:group1&fq=locations:location1 Is it possible to add OR clause between facets items in query? -- View this message in context: http://lucene.472066.n3.nabble.com/Facets-with-OR-clause-tp4058553.html Sent from the Solr - User mailing list archive at Nabble.com.
Exact matching in Solr 3.6.1
Hi, is it possible to get exact matched result if the search term is combined e.g. "cats" AND London NOT Leeds In the previus threads I have read that it is possible to create new field of String type and perform phrase search on it but nowhere the above mentioned combined search term had been taken into consideration. BR Pawel -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-matching-in-Solr-3-6-1-tp4058865.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Exact matching in Solr 3.6.1
Thanks for your reply. I am using edismax as well. What I want to get is the exact match without other results that could be close to the given term. -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-matching-in-Solr-3-6-1-tp4058865p4058876.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Exact matching in Solr 3.6.1
I will explain my case in the example below: We have three documents with given content: First document: london cats glenvilet Second document london cat glenvilet leeds Third document london cat glenvilet Search term: "cats" AND London NOT Leeds Expected result: First document Current result: First document, Third document Additionaly, next requirement says that when I type as search term: "cats" AND Londo NOT Leeds then I should get spell check collation: "cats" AND London NOT Leeds -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-matching-in-Solr-3-6-1-tp4058865p4058890.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Exact matching in Solr 3.6.1
Exact matching is just one of my cases. Currently I perform search on field with given definition: This field definition fullfils all other requirments. Examples: - special characters - passengers<-> passenger The case with exact matching is the last one I have to complete. The problem with cats <-> cat is caused by SnowballPorterFilterFactory. This is what I know. The question is whether it is possible to handle exact matching (edismax) with only one result like described in the previous post without influencing existing functionalities? BR Pawel -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-matching-in-Solr-3-6-1-tp4058865p4058907.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Exact matching in Solr 3.6.1
Thanks for your reply but this solution does not fullfil my requirment because other documents (not exact matched) will be returned as well. -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-matching-in-Solr-3-6-1-tp4058865p4058929.html Sent from the Solr - User mailing list archive at Nabble.com.
Query with whitespace
Hi, I would like to send query like "car house". My expectation is to have resulting documents that contains both car and house. Unfortunately Apache Solr out of the box returns documents as if the whitespace between was treated as OR. Does anybody know how to fix this? BR Pawos -- View this message in context: http://lucene.472066.n3.nabble.com/Query-with-whitespace-tp4044022.html Sent from the Solr - User mailing list archive at Nabble.com.
Special characters not indexed
Hi, I am trying to index special characters and make them searchable. User Story: 1. Index document with content: §$ %&/( )=? +*#'-<> 2. Find indexed document using search term: & Additionaly I have several other fields that are copied to textAll Field. The search is performed on this field. Does anybody know how to deal with such cases? Field definition: where: characters.txt § => ALPHA $ => ALPHA % => ALPHA & => ALPHA / => ALPHA ( => ALPHA ) => ALPHA = => ALPHA ? => ALPHA + => ALPHA * => ALPHA # => ALPHA ' => ALPHA - => ALPHA < => ALPHA > => ALPHA -- View this message in context: http://lucene.472066.n3.nabble.com/Special-characters-not-indexed-tp4046630.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Special characters not indexed
After changing to white space tokenizer there are still no results for given search term "&". Only when the whole word ("§$ %&/( )=? +*#'-<>") was given as a search term, this document was shown in results. -- View this message in context: http://lucene.472066.n3.nabble.com/Special-characters-not-indexed-tp4046630p4046929.html Sent from the Solr - User mailing list archive at Nabble.com.
Index-time field boosting
Hi, I have a problem with index time boosting. I created 4 new fields: The first field: alltext is used as default field for searching. I copy other 3 fields to it using copyField directive. Unfortunately while searching boosting mechaism does not work. Always scoring property equals to the same value. For example: search term = messi 1. title: messi, text: ronaldo 2. title ronaldo, text messi Expected result: the first entry should have higher scoring Current: Both have the same scoring. Could you tell me where the problem is? BR Pawel -- View this message in context: http://lucene.472066.n3.nabble.com/Index-time-field-boosting-tp4016010.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Index-time field boosting
Hi, this is my request handler from solrconfig.xml: explicit 10 text -- View this message in context: http://lucene.472066.n3.nabble.com/Index-time-field-boosting-tp4016010p4016049.html Sent from the Solr - User mailing list archive at Nabble.com.