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 "Kurt N." <ku...@unt.edu> on 2009/08/24 23:30:18 UTC

Dismax Wildcard Queries

Hello all.

We have a situation in the requirements for our project that make it
desireable to be able to perform a DisMax query with wildcard (* and ?)
characters in it.

We are using the standard release (not nightly) of Solr 1.3.

Our first thought was to apply the SOLR-756 patch
(http://issues.apache.org/jira/browse/SOLR-756), which aimed to make DisMax
support all query types.  The patch was installed, and Solr recompiled
without trouble.  Upon passing a query with the * wildcard in it, we did not
get a result set that indicated that the query was working.

Our next thought was to apply SOLR-758
(http://issues.apache.org/jira/browse/SOLR-758), to see if that solved our
problem.  In doing so, we had to install the SOLR-757
(http://issues.apache.org/jira/browse/SOLR-757) patch as well. 
Unfortunately, at this point, Solr refused to compile.  From the error
messages that Ant gave, it seemed that the new code from SOLR-758 was
looking for a function called "getNonLocalParams()", which, after grep'ing
the source, doesn't seem to exist in the Solr codebase.

At this point, any help would be welcome.  Our goal is to get DisMax working
with wildcard queries, so if we're going about it the wrong way, we'll
gladly do it whatever way that works.  If somebody's gotten it to work by
using the patches we're attempting, please share your experiences with us. 
Is there another patch that we need to apply?

Thanks for your help.
-- 
View this message in context: http://www.nabble.com/Dismax-Wildcard-Queries-tp25123671p25123671.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Dismax Wildcard Queries

Posted by "Smiley, David W." <ds...@mitre.org>.
Hi Kurt.  I'm the author of those JIRA issues.  I'm glad you have interest in them.  Please vote for them if you have not done so already.  I updated SOLR-758 and I hope it works out okay for you.  If you have further questions, please comment on the relevant issues.

~ David Smiley
 Author: http://www.packtpub.com/solr-1-4-enterprise-search-server


On 8/30/09 3:21 PM, "Shalin Shekhar Mangar" <sh...@gmail.com> wrote:

On Tue, Aug 25, 2009 at 3:00 AM, Kurt N. <ku...@unt.edu> wrote:

>
> Hello all.
>
> We have a situation in the requirements for our project that make it
> desireable to be able to perform a DisMax query with wildcard (* and ?)
> characters in it.
>
> We are using the standard release (not nightly) of Solr 1.3.
>
> Our first thought was to apply the SOLR-756 patch
> (http://issues.apache.org/jira/browse/SOLR-756), which aimed to make
> DisMax
> support all query types.  The patch was installed, and Solr recompiled
> without trouble.  Upon passing a query with the * wildcard in it, we did
> not
> get a result set that indicated that the query was working.
>
> Our next thought was to apply SOLR-758
> (http://issues.apache.org/jira/browse/SOLR-758), to see if that solved our
> problem.  In doing so, we had to install the SOLR-757
> (http://issues.apache.org/jira/browse/SOLR-757) patch as well.
> Unfortunately, at this point, Solr refused to compile.  From the error
> messages that Ant gave, it seemed that the new code from SOLR-758 was
> looking for a function called "getNonLocalParams()", which, after grep'ing
> the source, doesn't seem to exist in the Solr codebase.
>

I can't find QParser ever having a method named getNonLocalParams. However,
looking at the way that method is being used in the patch, using "params"
instead of getNonLocalParams() should work.

Questions on patches are best asked on the respective issue.

--
Regards,
Shalin Shekhar Mangar.


Re: Dismax Wildcard Queries

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Tue, Aug 25, 2009 at 3:00 AM, Kurt N. <ku...@unt.edu> wrote:

>
> Hello all.
>
> We have a situation in the requirements for our project that make it
> desireable to be able to perform a DisMax query with wildcard (* and ?)
> characters in it.
>
> We are using the standard release (not nightly) of Solr 1.3.
>
> Our first thought was to apply the SOLR-756 patch
> (http://issues.apache.org/jira/browse/SOLR-756), which aimed to make
> DisMax
> support all query types.  The patch was installed, and Solr recompiled
> without trouble.  Upon passing a query with the * wildcard in it, we did
> not
> get a result set that indicated that the query was working.
>
> Our next thought was to apply SOLR-758
> (http://issues.apache.org/jira/browse/SOLR-758), to see if that solved our
> problem.  In doing so, we had to install the SOLR-757
> (http://issues.apache.org/jira/browse/SOLR-757) patch as well.
> Unfortunately, at this point, Solr refused to compile.  From the error
> messages that Ant gave, it seemed that the new code from SOLR-758 was
> looking for a function called "getNonLocalParams()", which, after grep'ing
> the source, doesn't seem to exist in the Solr codebase.
>

I can't find QParser ever having a method named getNonLocalParams. However,
looking at the way that method is being used in the patch, using "params"
instead of getNonLocalParams() should work.

Questions on patches are best asked on the respective issue.

-- 
Regards,
Shalin Shekhar Mangar.