Really look at the analysis page in solr admin for how your analyzer chain handles things, or you'll spend time until you're really old having trouble :).
Here's what I see on a quick scan: > StandardTokenizer tries to, among other things, preserve email addresses. The kinds of strings you're working with may trip something up here. > Remove WordDelimiterFactory altogether. The point of WDF is to break words apart at transitions. > Remove EnglishPorterFilterFactory too. What the effect of applying an algorithmic stemming process to words like you're interested in is...er...not obvious. All that said, I took a quick at the analysis page with your definition and nothing jumped out at me. Are you sure that: > you're getting to the request handler you think? What does adding &debugQuery=on show? > you've indexed the data after you've made the changes you outlined above? The SOLR admin page can help here, especially the [full interface] link, with debug info on. If nothing shows up, can you post the results of &debugQuery=on? Best Erick On Tue, Aug 31, 2010 at 6:11 AM, Hasnain <hasn...@hotmail.com> wrote: > > I have gone through all the of the related posts, but could not find a > proper > answer that works, so Im writing this post > > Is there anyway of using wilcard searches on alphanumeric text like...R-1* > ? > > let me share relevent information > > > <fieldType name="textShoaib" class="solr.TextField" > positionIncrementGap="100"> > <analyzer type="index"> > <tokenizer class="solr.StandardTokenizerFactory"/> <!--This was > originally <tokenizer class="solr.WhitespaceTokenizerFactory"/> just > playing > around--> > <filter class="solr.StopFilterFactory" > ignoreCase="true" > words="stopwords.txt" > enablePositionIncrements="true" > /> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="0" generateNumberParts="0" catenateWords="0" > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" > preserveOriginal="1"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.EnglishPorterFilterFactory" > protected="protwords.txt"/> > <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> > </analyzer> > <analyzer type="query"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <!--This was originally <tokenizer > class="solr.WhitespaceTokenizerFactory"/>--> > <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" > ignoreCase="true" expand="true"/> > <filter class="solr.StopFilterFactory" ignoreCase="true" > words="stopwords.txt"/> > <filter class="solr.WordDelimiterFilterFactory" > generateWordParts="0" generateNumberParts="0" catenateWords="0" > catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" > preserveOriginal="1"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.EnglishPorterFilterFactory" > protected="protwords.txt"/> > <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> > </analyzer> > </fieldType> > > > > > my requestHandler is... > > > > > > <requestHandler name="standard2" class="solr.SearchHandler"> > <!-- default values for query parameters --> > <lst name="defaults"> > <str name="defType">dismax</str> > <str name="echoParams">explicit</str> > <str name="tie">0.6</str> > <str name="pf">name^2.3 mat_nr^0.4</str> > <str name="mm">0%</str> > <!-- > <int name="rows">10</int> > <str name="fl">*</str> > <str name="version">2.1</str> > --> > </lst> > > </requestHandler> > > > > and also the field on which I want to apply searching on > > > > <field name="mat_nr" type="textShoaib" indexed="true" stored="true" > omitNorms="true"/> > > > > and the query Im using is > > > > qt=standard2&q=R-1* > > > > but this still doesnt work. > > > any suggestions on this? > > thanks > > > > > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Alphanumeric-wildcard-search-problem-tp1393332p1393332.html > Sent from the Solr - User mailing list archive at Nabble.com. >