> On a slightly different topic is there a way to get SOLR Pro to return “all” 
> records without passing a search term? I have SOLR Pro indexing course 
> information and I wanted the ability to show someone all courses available at 
> location xyz without needing a search term. I’ve got SOLRPro storing a couple 
> of extra fields (locations and industries etc.) and when a visitor selects a 
> location from a dropdown list the location information is being sent to SOLR 
> Pro by creating an “fq” filter in an array and passing it via the 
> customParams parameter.  The issue at the moment is that they must also use a 
> search term.



To search for all records in Solr, you use the wildcard *:* for the search term.

--
Jeff Coughlin


On Oct 22, 2012, at 11:47 AM, Sean Coyne <coyne.s...@gmail.com> wrote:

> How do you have the fields in question setup?  You should index text fields 
> as both "Text" and "Phonetic" to get the kind of functionality you are 
> talking about.  I dont think it will return partial matches, but for workds 
> like account/accounts/accouting, those matches should work (it is called 
> stemming, it breaks the word down to the stem, account, to find matches) 
> without you having to add them as synonyms.
> 
> As far as "all records" you have to provide some kind of filter, so you could 
> do something like "typename: dmHTML" which would return all dmHTML records in 
> the index.  So if you want to get all the "courses" in your example, you 
> could filter on just that typename.
> 
> Can you log a bug for the "*" error?
> 
> On Friday, October 19, 2012 11:56:44 PM UTC-4, tHeSmUrF wrote:
> Hi,
>  
> Not sure if this is caused by something I’ve changed in my project but should 
> SOLR Pro return part word matches?  For example I have content indexed that 
> has the word “accounting” and “accounts” in the body.  If I do a search for 
> “accou” I get no results (but do get the suggestion to try “account”).  I’ve 
> tried with various wildcards but I never get any results.  Is there something 
> I need to change in the schema or other configuration files?
>  
> I have a similar issue with searches for “account” where I had expected to 
> see matches for “accounts”, “accounting” etc. or are those ones up to me to 
> add to the list of synonyms?
>  
> On a slightly different topic is there a way to get SOLR Pro to return “all” 
> records without passing a search term? I have SOLR Pro indexing course 
> information and I wanted the ability to show someone all courses available at 
> location xyz without needing a search term. I’ve got SOLRPro storing a couple 
> of extra fields (locations and industries etc.) and when a visitor selects a 
> location from a dropdown list the location information is being sent to SOLR 
> Pro by creating an “fq” filter in an array and passing it via the 
> customParams parameter.  The issue at the moment is that they must also use a 
> search term.
>  
> As a side note I have also noticed that if you enter a search term of “*” you 
> end up with a 500 internal server error. J
>  
> Cheers
> Mark
> 
> -- 
> You received this message cos you are subscribed to "farcry-dev" Google group.
> To post, email: farcry-dev@googlegroups.com
> To unsubscribe, email: farcry-dev+unsubscr...@googlegroups.com
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>  
>  

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@googlegroups.com
To unsubscribe, email: farcry-dev+unsubscr...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry


Reply via email to