Re: Usage of enablePositionIncrements in Stop filter
Guys, I found the explanation that i was looking for online. http://docs.lucidworks.com/display/lweug/Suppressing+Stop+Word+Indexing -- View this message in context: http://lucene.472066.n3.nabble.com/Usage-of-enablePositionIncrements-in-Stop-filter-tp4147321p4147324.html Sent from the Solr - User mailing list archive at Nabble.com.
Usage of enablePositionIncrements in Stop filter
Hi, Could anyone please explain me the usage of enablePositionIncrements in StopFilterFactory. I have trying to search in on the forum as well as the internet, but I cannot understand it. It would be great if anyone could help me out with an example. Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Usage-of-enablePositionIncrements-in-Stop-filter-tp4147321.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Usage of enablePositionIncrements in Stop filter
Thanks Jack! -- View this message in context: http://lucene.472066.n3.nabble.com/Usage-of-enablePositionIncrements-in-Stop-filter-tp4147321p4147352.html Sent from the Solr - User mailing list archive at Nabble.com.
Match query string within indexed field?
Hi, My requirement is to give a match whenever a string is found within the indexed data of a field irrespective of where it is found. For example, if I have a field which is indexed with the data "abc". Now any of the following query string must give a match: xyzabc,xyabc, abcxyz .. I am using *solr.KeywordTokenizerFactory* as the tokenizer class and *solr.LowerCaseFilterFactory* filter as index time in *schema.xml*. Could anyone help me out as to how I can achieve the functionality. Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/Match-query-string-within-indexed-field-tp4147896.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Match query string within indexed field?
Hi, Thanks for the reply. Is there a better way to do it if the scenario is the following: Indexed values: "abc def" Query String:"xy abc def z" So basically the query string has to match all the words present in the indexed data to give a MATCH. -- View this message in context: http://lucene.472066.n3.nabble.com/Match-indexed-data-within-query-string-tp4147896p4147958.html Sent from the Solr - User mailing list archive at Nabble.com.
Solr schema.xml query analyser
0 down vote favorite I am a complete beginner to Solr and need some help. My task is to provide a match when the search term contains the indexed field. For example: If query= foo bar and textExactMatch= foo, I should not get a MATCH If query= foo bar and textExactMatch= foo bar, I should get a MATCH If query= foo bar and textExactMatch= xyz foo bar/foo bar xyz, I should get a MATCH I am indexing my field as follows: So I'm indexing the text for the field as it is without breaking it further down. Could someone help me out with how should I tokenize and filter the field during query time. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-schema-xml-query-analyser-tp4148317.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr schema.xml query analyser
Thanks Jack for the reply. I did not mention the query time analyzer in my post because I wasn't sure what should be put there. With regards to your reply, If I put the query term in quotes, would I get a match for the following: Indexed field value: foo bar Query term: foo bar xyz/xyz foo bar I believe it should not as it will be looking for the exact term present in both the places. However I want it to behave in the following way: If query= foo bar and textExactMatch= foo, I SHOULD NOT get a MATCH If query= foo bar and textExactMatch= foo bar, I SHOULD get a MATCH If query= foo bar and textExactMatch= xyz foo bar/foo bar xyz, I SHOULD get a MATCH Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-schema-xml-query-analyser-tp4148317p4148327.html Sent from the Solr - User mailing list archive at Nabble.com.