You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Amrun <Am...@gmx.at> on 2004/04/07 21:36:30 UTC

searching for alphanumeric keywords

Hi, 

I'm trying to search for alphanumeric keywords, e.g. 5ADT or 2003/2004. If I
try to search for it in my jbuilder project (developer tool) it works quite
fine, but if I want to search it from the webpage it doesn't work. I get the
values from comboboxes (so they have to be strings), they have the right
value, but it doesn't work. It reacts as there hasn't been found anything. 
Maybe someone has had this problem before or has any idea why this works in
this strange way?!

thx Amrûn

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Re: searching for alphanumeric keywords

Posted by Amrun <Am...@gmx.at>.
thx for your answer
I've prooved all this before. I can't find the reason for this. I get the
right parameters and all works fine for other keywords that don't contain
numbers. 
I use the StandardAnalyzer as this might help.

> With the small addition that it might be an escaping issue ? are you 
> sure that the webpage ( I assume you're getting this from a HTML form) 
> has the input parameters escaped properly ?
> 
> Might be completely offbase, but just check that you're searching for 
> the same item  (from both JBuilder and from the webpage).
> 
> That angle is probably covered by "If QueryParser 
> <http://wiki.apache.org/jakarta-lucene/QueryParser> is in the equation, 
> use the .toString method of the generated Query instance to see what it 
> did to the entered expression", but might be something to look for..
> 
> 
> Erik Hatcher wrote:
> 
> > From now on, this will be my stock reply:
> >
> >     <http://wiki.apache.org/jakarta-lucene/AnalysisParalysis>
> >
> >
> > On Apr 7, 2004, at 3:36 PM, Amrun wrote:
> >
> >> Hi,
> >>
> >> I'm trying to search for alphanumeric keywords, e.g. 5ADT or 
> >> 2003/2004. If I
> >> try to search for it in my jbuilder project (developer tool) it works 
> >> quite
> >> fine, but if I want to search it from the webpage it doesn't work. I 
> >> get the
> >> values from comboboxes (so they have to be strings), they have the
> right
> >> value, but it doesn't work. It reacts as there hasn't been found 
> >> anything.
> >> Maybe someone has had this problem before or has any idea why this 
> >> works in
> >> this strange way?!
> >>
> >> thx Amrûn
> >>
> >> -- 
> >> NEU : GMX Internet.FreeDSL
> >> Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
> >
> 
> -- 
> Thimal Jayasooriya,
> Department of Computer Science,
> The University of York
> http://www.cs.york.ac.uk/~thimal/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
> 

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Re: searching for alphanumeric keywords

Posted by Thimal Jayasooriya <th...@cs.york.ac.uk>.
With the small addition that it might be an escaping issue ? are you 
sure that the webpage ( I assume you're getting this from a HTML form) 
has the input parameters escaped properly ?

Might be completely offbase, but just check that you're searching for 
the same item  (from both JBuilder and from the webpage).

That angle is probably covered by "If QueryParser 
<http://wiki.apache.org/jakarta-lucene/QueryParser> is in the equation, 
use the .toString method of the generated Query instance to see what it 
did to the entered expression", but might be something to look for..


Erik Hatcher wrote:

> From now on, this will be my stock reply:
>
>     <http://wiki.apache.org/jakarta-lucene/AnalysisParalysis>
>
>
> On Apr 7, 2004, at 3:36 PM, Amrun wrote:
>
>> Hi,
>>
>> I'm trying to search for alphanumeric keywords, e.g. 5ADT or 
>> 2003/2004. If I
>> try to search for it in my jbuilder project (developer tool) it works 
>> quite
>> fine, but if I want to search it from the webpage it doesn't work. I 
>> get the
>> values from comboboxes (so they have to be strings), they have the right
>> value, but it doesn't work. It reacts as there hasn't been found 
>> anything.
>> Maybe someone has had this problem before or has any idea why this 
>> works in
>> this strange way?!
>>
>> thx Amrûn
>>
>> -- 
>> NEU : GMX Internet.FreeDSL
>> Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
>

-- 
Thimal Jayasooriya,
Department of Computer Science,
The University of York
http://www.cs.york.ac.uk/~thimal/


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Re: searching for alphanumeric keywords

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
 From now on, this will be my stock reply:

	<http://wiki.apache.org/jakarta-lucene/AnalysisParalysis>


On Apr 7, 2004, at 3:36 PM, Amrun wrote:

> Hi,
>
> I'm trying to search for alphanumeric keywords, e.g. 5ADT or 
> 2003/2004. If I
> try to search for it in my jbuilder project (developer tool) it works 
> quite
> fine, but if I want to search it from the webpage it doesn't work. I 
> get the
> values from comboboxes (so they have to be strings), they have the 
> right
> value, but it doesn't work. It reacts as there hasn't been found 
> anything.
> Maybe someone has had this problem before or has any idea why this 
> works in
> this strange way?!
>
> thx Amrûn
>
> -- 
> NEU : GMX Internet.FreeDSL
> Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org