Re: Need help in alphanumeric search

2015-10-05 Thread Bhaskar
data and the queries you want to do. > Maybe > >> use WhitespaceAnalyzer or better StandardAnalyzer as a first step. Be > sure > >> to reindex your data before querying. The Analyzer used on the search > side > >> must be the same like on the query side. If you want to

Re: Need help in alphanumeric search

2015-10-01 Thread Jack Krupansky
> > > > > > > > > > https://lucene.apache.org/core/5_3_1/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html > > > > >> "A LetterTokenizer is a tokenizer that divides text at > non-letters. > > > > That's >

Re: Need help in alphanumeric search

2015-10-01 Thread Bhaskar
; > > > > >> > return i; > > > >> > } > > > >> > > > > >> > > > > >> > Searching code: > > > >> > > > > >> > public class SimpleDBSearcher { > > > >> &g

Re: Need help in alphanumeric search

2015-10-01 Thread Jack Krupansky
I'd suggest to first inform yourself about analysis and choose a > better > > >> one that suits your underlying data and the queries you want to do. > > Maybe > > >> use WhitespaceAnalyzer or better StandardAnalyzer as a first step. Be > > sure > > >> to r

Re: Need help in alphanumeric search

2015-10-01 Thread Bhaskar
ries you want to do. > Maybe > >> use WhitespaceAnalyzer or better StandardAnalyzer as a first step. Be > sure > >> to reindex your data before querying. The Analyzer used on the search > side > >> must be the same like on the query side. If you want to use wildc

Re: Need help in alphanumeric search

2015-10-01 Thread Ian Lea
be the same like on the query side. If you want to use wildcards, you >> have to take care more, because wildcards are not really natural for "full >> text search engine" and may cause inconsistent results. >> >> Uwe >> >> - >> Uwe Schindler >>

Re: Need help in alphanumeric search

2015-10-01 Thread Bhaskar
System.out.println(hits.length + " Record(s) Found"); for (int i = 0; i < > > hits.length; i++) { int docId = hits[i].doc; Document d = > searcher.doc(docId); > > System.out.println("\"cpn value is:\" " + d.get("cpn")); } if > (hits.length == 0)

Re: Need help in alphanumeric search

2015-09-30 Thread Bhaskar
213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > -Original Message----- > > From: Bhaskar [mailto:bhaskar1...@gmail.com] > > Sent: Wednesday, September 30, 2015 4:28 AM > > To: java-user@lucene.apache.org > > Subject: Re: Need help in alphanu

RE: Need help in alphanumeric search

2015-09-29 Thread Uwe Schindler
/www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Bhaskar [mailto:bhaskar1...@gmail.com] > Sent: Wednesday, September 30, 2015 4:28 AM > To: java-user@lucene.apache.org > Subject: Re: Need help in alphanumeric search > > Hi Uwe, > > Below is my indexing

Re: Need help in alphanumeric search

2015-09-29 Thread Bhaskar
gt; searching. > > Uwe > > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Erick Erickson [mailto:erickerick...@gmail.com] > > Sent: Monday, Sep

Re: Need help in alphanumeric search

2015-09-28 Thread Erick Erickson
e > > >> -Original Message- >> From: Erick Erickson [mailto:erickerick...@gmail.com] >> Sent: Monday, September 28, 2015 6:01 PM >> To: java-user >> Subject: Re: Need help in alphanumeric search >> >> You need to supply the definitions of this field

RE: Need help in alphanumeric search

2015-09-28 Thread Uwe Schindler
- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Monday, September 28, 2015 6:01 PM > To: java-user > Subject: Re: Need help in alphanumeric sea

Re: Need help in alphanumeric search

2015-09-28 Thread Erick Erickson
You need to supply the definitions of this field from your schema.xml file, both the and Additionally, please provide the results of the query you're trying with &debug=true appended. The adminUI/analysis page is very helpful in these situations as well. Select the appropriate core from the dro

Re: Need help in alphanumeric search

2015-09-28 Thread Bhaskar
Thanks Lan for reply. cpn values are like 123-0049, 342-043, ab23-090, hedwsdg my application is working when i gave search for below inputs 1) ab* 2)hedwsdg 3) hed* but it is not working for 1) 123* 2) 123-0049 3) ab23* Note: if the search input has number then it is not working. Thanks in

Re: Need help in alphanumeric search

2015-09-28 Thread Ian Lea
Hi Can you provide a few examples of values of cpn that a) are and b) are not being found, for indexing and searching. You may also find some of the tips at http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2F_incorrect_hits.3F useful. You haven't shown the code that create