You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Robert Naczinski <ro...@googlemail.com> on 2010/07/06 14:53:02 UTC
Wildcards queries
Hi,
we use in our application EmbeddedSolrServer. Everything went fine.
Now I want use wildcards queries.
It does not work. Must be adapted for the schema.xml?
Can someone help me? In wiki, I find nothing? Why do I need simple
example or link.
Regards,
Robert
Re: Wildcards queries
Posted by RL <rl...@gmail.com>.
Hi,
a bit more information would help to identify what's the problem in your
case.
but in general these facts come into my mind:
- leading wildcard queries are not available in solr (without extending the
QueryParser).
- no text analysing will be performed on the search word when using
wildcards so you need to make sure that the search field isn't configured to
be stemmed and you are not searching for an upper case term whereas your
text was lowercased through analysis.
hope that helps a little bit
--
View this message in context: http://lucene.472066.n3.nabble.com/Wildcards-queries-tp946334p946589.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Wildcards queries
Posted by Erick Erickson <er...@gmail.com>.
You need to look carefully at your schema.xml. There are plenty of
comments in that file describing what's going on. That's where you
set up your analyzers by chaining together various tokenizers
and filters.
I think you're confused about indexing and storing. Generally it's
a bad practice to allow your searching to be case sensitive. Indexed
data is the data that's searched, and lowercasing that is generally
a good idea.
Stored data, on the other hand, is stored and retrieved as is, no
transformations are performed at all. However, the stored isn't
used to search, it's only there so you can retrieve the text and
show the user.
For instance, if you both INDEX and STORE a field and add
"This text WORKED very well", the indexed tokens might
be very different, e.g. "text" "work" "very" "well" might be
all that's indexed and searched (lowercased, stopwords
removed, stemmed". However, if you return the field you
would see "This text WORKED very well".
HTH
Erick
On Wed, Jul 7, 2010 at 9:06 AM, Robert Naczinski <
robert.naczinski@googlemail.com> wrote:
> Hi,
>
> thanks for the help. The search is working now. Now I would like to
> find documents using upercases. Now I have to look everything over
> lowercases.
>
> Where can I set QueryParser and WordAnalyser?
>
> I added the configuration files as attachment.
>
> Regards,
>
> Robert
>
> 2010/7/7 Erick Erickson <er...@gmail.com>:
> > &debugQuery=on
>
Re: Wildcards queries
Posted by Robert Naczinski <ro...@googlemail.com>.
Hi,
thanks for the help. The search is working now. Now I would like to
find documents using upercases. Now I have to look everything over
lowercases.
Where can I set QueryParser and WordAnalyser?
I added the configuration files as attachment.
Regards,
Robert
2010/7/7 Erick Erickson <er...@gmail.com>:
> &debugQuery=on
Re: Wildcards queries
Posted by Erick Erickson <er...@gmail.com>.
Still not enough info.
Please show:
1> the field type (not field, but field type showing the analyzers for the
field you're interested in).
2> example data you've indexed
3> the query you submit
4> the response from the query (especially with &debugQuery=on appended to
the query).
Otherwise, it's really hard to guess what's going on.
HTH
Erick
On Tue, Jul 6, 2010 at 9:58 AM, Robert Naczinski <
robert.naczinski@googlemail.com> wrote:
> Hi,
>
> thanks for the reply. I am an absolute beginner with Solr.
>
> I have taken, for the beginning, the configuration from
> {solr.home}example/solr .
>
> In solrconfig.xml are all queryparser commented out ;-( Where can a
> find the QeryParser? Javadoc, Wiki?
>
> Regards,
>
> Robert
>
> 2010/7/6 Mark Miller <ma...@gmail.com>:
> > On 7/6/10 8:53 AM, Robert Naczinski wrote:
> >> Hi,
> >>
> >> we use in our application EmbeddedSolrServer.
> >
> > Great!
> >
> >> Everything went fine.
> >
> > Excellent!
> >
> >> Now I want use wildcards queries.
> >
> > Cool!
> >
> >>
> >> It does not work.
> >
> > Bummer!
> >
> >> Must be adapted for the schema.xml?
> >
> > Not necessarily...
> >
> >>
> >> Can someone help me?
> >
> > We can try!
> >
> >>In wiki, I find nothing?
> >
> > No, you will find lots!
> >
> >> Why do I need simple
> >> example or link.
> >
> > Because it would be helpful!
> >
> >
> >>
> >> Regards,
> >>
> >> Robert
> >
> >
> > What query parser are you using? Dismax? That query parser does not
> > support wildcards. Try the lucene queryparser if that's the case.
> >
> > Otherwise respond with more information about your setup.
> >
> > --
> > - Mark
> >
> > http://www.lucidimagination.com
> >
>
Re: Wildcards queries
Posted by Robert Naczinski <ro...@googlemail.com>.
Hi,
thanks for the reply. I am an absolute beginner with Solr.
I have taken, for the beginning, the configuration from
{solr.home}example/solr .
In solrconfig.xml are all queryparser commented out ;-( Where can a
find the QeryParser? Javadoc, Wiki?
Regards,
Robert
2010/7/6 Mark Miller <ma...@gmail.com>:
> On 7/6/10 8:53 AM, Robert Naczinski wrote:
>> Hi,
>>
>> we use in our application EmbeddedSolrServer.
>
> Great!
>
>> Everything went fine.
>
> Excellent!
>
>> Now I want use wildcards queries.
>
> Cool!
>
>>
>> It does not work.
>
> Bummer!
>
>> Must be adapted for the schema.xml?
>
> Not necessarily...
>
>>
>> Can someone help me?
>
> We can try!
>
>>In wiki, I find nothing?
>
> No, you will find lots!
>
>> Why do I need simple
>> example or link.
>
> Because it would be helpful!
>
>
>>
>> Regards,
>>
>> Robert
>
>
> What query parser are you using? Dismax? That query parser does not
> support wildcards. Try the lucene queryparser if that's the case.
>
> Otherwise respond with more information about your setup.
>
> --
> - Mark
>
> http://www.lucidimagination.com
>
Re: Wildcards queries
Posted by Mark Miller <ma...@gmail.com>.
On 7/6/10 8:53 AM, Robert Naczinski wrote:
> Hi,
>
> we use in our application EmbeddedSolrServer.
Great!
> Everything went fine.
Excellent!
> Now I want use wildcards queries.
Cool!
>
> It does not work.
Bummer!
> Must be adapted for the schema.xml?
Not necessarily...
>
> Can someone help me?
We can try!
>In wiki, I find nothing?
No, you will find lots!
> Why do I need simple
> example or link.
Because it would be helpful!
>
> Regards,
>
> Robert
What query parser are you using? Dismax? That query parser does not
support wildcards. Try the lucene queryparser if that's the case.
Otherwise respond with more information about your setup.
--
- Mark
http://www.lucidimagination.com