Re: Restricting search results by field value

2012-12-06 Thread Way Cool
Grouping should work: group=true&group.field=source_id&group.limit=3&group.main=true On Thu, Dec 6, 2012 at 2:35 AM, Tom Mortimer wrote: > Sounds like it's worth a try! Thanks Andre. > Tom > > On 5 Dec 2012, at 17:49, Andre Bois-Crettez wrote: > > > If you do grouping on source_id, it should be

Re: Couple issues with edismax in 3.5

2012-03-01 Thread Way Cool
Thanks Ahmet! That's good to know someone else also tried to make phrase queries to fix multi-word synonym issue. :-) On Thu, Mar 1, 2012 at 1:42 AM, Ahmet Arslan wrote: > > I don't think mm will help here because it defaults to 100% > > already by the > > following code. > > Default behavior

Re: Couple issues with edismax in 3.5

2012-02-29 Thread Way Cool
Thanks Ahmet for your reply. I don't think mm will help here because it defaults to 100% already by the following code. if (parsedUserQuery != null && doMinMatched) { String minShouldMatch = solrParams.get(DMP.MM, "100%"); if (parsedUserQuery instanceof BooleanQuery) {

Couple issues with edismax in 3.5

2012-02-28 Thread Way Cool
Hi, Guys, I am having the following issues with edismax: 1. Search for 4X6 generated the following parsed query: +DisjunctionMaxQueryid:4 id:x id:6)^1.2) | ((name:4 name:x name:6)^1.025) ) while the search for "4 X 6" (with space in between) generated the query below: (I like this one) +((Di

Re: Boost Exact matches on Specific Fields

2011-09-28 Thread Way Cool
k to get the exact > match on the top and bring "Hospitalization" below in the results > > > Thanks > Balaji > > > On Tue, Sep 27, 2011 at 9:38 AM, Way Cool wrote: > > > If I were you, probably I will try defining two fields: > > 1. ts_catego

Re: Searching multiple fields

2011-09-28 Thread Way Cool
It will be nice if we can have dissum in addition to dismax. ;-) On Tue, Sep 27, 2011 at 9:26 AM, lee carroll wrote: > see > > > http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Similarity.html > > > > On 27 September 2011 16:04, Mark wrote: > > I thought that a similarity class

Re: Boost Exact matches on Specific Fields

2011-09-26 Thread Way Cool
If I were you, probably I will try defining two fields: 1. ts_category as a string type 2. ts_category1 as a text_en type Make sure copy ts_category to ts_category1. You can use the following as qf in your dismax: qf=body^4.0 title^5.0 ts_category^10.0 ts_category1^5.0 or something like that. YH

Any plans to support function queries on score?

2011-09-26 Thread Way Cool
Hi, guys, Do you have any plans to support function queries on score field? for example, sort=floor(product(score, 100)+0.5) desc? So far I am getting the following error: undefined field score I can't use subquery in this case because I am trying to use secondary sorting, however I will be open

Re: Solr Faceting & DIH

2011-08-29 Thread Way Cool
I think you need to setup entity hierarchy with product as a top level entity and attribute as another entity under product, otherwise the record #2 and 3 will override the first one. On Mon, Aug 29, 2011 at 3:52 PM, Aaron Bains wrote: > Hello, > > I am trying to setup Solr Faceting on products

When are you planning to release SolrCloud feature with ZooKeeper?

2011-08-18 Thread Way Cool
Hi, guys, When are you planning to release the SolrCloud feature with ZooKeeper currently in trunk? The new admin interface looks great. Great job. Thanks, YH

Re: Problem with xinclude in solrconfig.xml

2011-08-10 Thread Way Cool
Sorry for the spam. I just figured it out. Thanks. On Wed, Aug 10, 2011 at 2:17 PM, Way Cool wrote: > Hi, Guys, > > Based on the document below, I should be able to include a file under the > same directory by specifying relative path via xinclude in solrconfig.xml: > http://

Problem with xinclude in solrconfig.xml

2011-08-10 Thread Way Cool
Hi, Guys, Based on the document below, I should be able to include a file under the same directory by specifying relative path via xinclude in solrconfig.xml: http://wiki.apache.org/solr/SolrConfigXml However I am getting the following error when I use relative path (absolute path works fine thou

Re: Is there anyway to sort differently for facet values?

2011-08-05 Thread Way Cool
ot. It just sorts "alphabetically", actually by raw > byte-order. > >> > >> No other facet sorting functionality is available, and it would be > >> tricky to implement in a performant way because of the way lucene > >> works. But it would certainly b

Re: What's the best way (practice) to do index distribution at this moment? Hadoop? rsyncd?

2011-08-05 Thread Way Cool
I will look at that. Thanks Shalin! On Fri, Aug 5, 2011 at 1:39 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Fri, Aug 5, 2011 at 12:22 AM, Way Cool wrote: > > > Hi, guys, > > > > What's the best way (practice) to do index distribution at

Re: What's the best way (practice) to do index distribution at this moment? Hadoop? rsyncd?

2011-08-04 Thread Way Cool
on involving various kinds of > scaling distribution, that I'm not familiar with, including the sharding > feature, that I'm not very familiar with. I don't know if anyone's tried to > do anything with hadoop. > > > > > On 8/4/2011 2:52 PM, Way Cool wrote: > >

What's the best way (practice) to do index distribution at this moment? Hadoop? rsyncd?

2011-08-04 Thread Way Cool
Hi, guys, What's the best way (practice) to do index distribution at this moment? Hadoop? or rsyncd (back to 3 years ago ;-)) ? Thanks, Yugang

Re: Is there anyway to sort differently for facet values?

2011-08-04 Thread Way Cool
e by using facet.sort. Is there any other ways in Solr? Thanks in advance, YH On Wed, Aug 3, 2011 at 8:35 PM, Erick Erickson wrote: > have you looked at the facet.sort parameter? The "index" value is what I > think you want. > > Best > Erick > On Aug 3, 2011 7:

Is there anyway to sort differently for facet values?

2011-08-03 Thread Way Cool
Hi, guys, Is there anyway to sort differently for facet values? For example, sometimes I want to sort facet values by their values instead of # of docs, and I want to be able to have a predefined order for certain facets as well. Is that possible in Solr we can do that? Thanks, YH

Re: fetcher no agents listed in 'http.agent.name' property

2011-07-07 Thread Way Cool
> appreciate your time and help. > > Merci > > On Thu, Jul 7, 2011 at 12:05 PM, Way Cool wrote: > > > Just make sure you did change the files under > > /runtime/local/conf if you are running from runtime/local. > > > > On Thu, Jul 7, 2011 at 8:34 AM, se

Re: fetcher no agents listed in 'http.agent.name' property

2011-07-07 Thread Way Cool
Just make sure you did change the files under /runtime/local/conf if you are running from runtime/local. On Thu, Jul 7, 2011 at 8:34 AM, serenity keningston < serenity.kenings...@gmail.com> wrote: > Hello Friends, > > > I am experiencing this error message " fetcher no agents listed in ' > http.a

Re: A beginner problem

2011-07-05 Thread Way Cool
You can follow the links below to setup Nutch and Solr: http://thetechietutorials.blogspot.com/2011/06/solr-and-nutch-integration.html http://thetechietutorials.blogspot.com/2011/06/how-to-build-and-start-apache-solr.html http://wiki.apache.org/nutch/RunningNutchAndSolr Of course, more details wi

Re: Apache Nutch and Solr Integration

2011-07-05 Thread Way Cool
Sorry, Serenity, somehow I don't see the attachment. On Tue, Jul 5, 2011 at 11:23 AM, serenity keningston < serenity.kenings...@gmail.com> wrote: > Please find attached screenshot > > > On Tue, Jul 5, 2011 at 11:53 AM, Way Cool wrote: > >> Can you let me know whe

Re: Dynamic Facets

2011-07-05 Thread Way Cool
the fields you want to facet on and they can be > dynamic. > > Take a look at recent threads here on taxonomy faceting for help. > Also, look here[1] > > [1] http://wiki.apache.org/solr/SimpleFacetParameters > > On Tue, 5 Jul 2011 11:15:51 -0600, Way Cool > wrote: >

Dynamic Facets

2011-07-05 Thread Way Cool
Hi, guys, We have more than 1000 attributes scattered around 700K docs. Each doc might have about 50 attributes. I would like Solr to return up to 20 facets for every searches, and each search can return facets dynamically depending on the matched docs. Anyone done that before? That'll be awesome

Re: Apache Nutch and Solr Integration

2011-07-05 Thread Way Cool
Can you let me know when and where you were getting the error? A screen-shot will be helpful. On Tue, Jul 5, 2011 at 8:15 AM, serenity keningston < serenity.kenings...@gmail.com> wrote: > Hello Friends, > > > I am a newbie to Solr and trying to integrate Apache Nutch 1.3 and Solr 3.2 > . I did th

Re: Getting started with Velocity

2011-07-01 Thread Way Cool
By default, browse is using the following config: explicit velocity browse layout Solritas edismax *:* 10 *,score text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 text,fea

Re: How to avoid double counting for facet query

2011-06-14 Thread Way Cool
I just checked SolrQueryParser.java from 3.2.0 source. Looks like Yonik Seeley's changes for LUCENE-996<https://issues.apache.org/jira/browse/LUCENE-996>is not in. I will check trunk later. Thanks! On Tue, Jun 14, 2011 at 5:34 PM, Way Cool wrote: > I already checked out facet r

Re: How to avoid double counting for facet query

2011-06-14 Thread Way Cool
I already checked out facet range query. By the way, I did put the facet.range.include as below: lower Couple things I don't like though are: 1. It returns the following without end values (I have to re-calculate the end values) : 20 3 50.0 0.0 600.0 0 2. I can't specify custom ranges of values

Re: Modifying Configuration from a Browser

2011-06-14 Thread Way Cool
+1 Good idea! I was thinking to write a web interface to change contents for elevate.xml and feed back to Solr core. On Tue, Jun 14, 2011 at 1:51 PM, Markus Jelsma wrote: > There is no API. Upload and restart the core is the way to go. > > > Does anyone have any examples of modifying a configurat

Re: How to avoid double counting for facet query

2011-06-14 Thread Way Cool
That's good to know. From the ticket, looks like the fix will be in 4.0 then? Currently I can see {} and [] worked, but not combined for Solr 3.1. I will try 3.2 soon. Thanks. On Tue, Jun 14, 2011 at 2:07 PM, Ahmet Arslan wrote: > > You sure Solr supports that? > > I am getting exceptions by do

Re: How to avoid double counting for facet query

2011-06-14 Thread Way Cool
You sure Solr supports that? I am getting exceptions by doing that. Ahmet, do you remember where you see that document? Thanks. On Tue, Jun 14, 2011 at 1:58 PM, Way Cool wrote: > Thanks! That's what I was trying to find. > > > On Tue, Jun 14, 2011 at 1:48 PM, Ahmet Arslan

Re: How to avoid double counting for facet query

2011-06-14 Thread Way Cool
Thanks! That's what I was trying to find. On Tue, Jun 14, 2011 at 1:48 PM, Ahmet Arslan wrote: > > 23 > > 1 > > > > ... > > * > > > > As you notice, the number of the results is 23, however an > > extra doc was > > found in the 160-200 range. > > > > Any way I can avoid double counting issue? >

How to avoid double counting for facet query

2011-06-14 Thread Way Cool
Hi, guys, I fixed Solr search UI (solr/browse) to display the price range facet values via http://thetechietutorials.blogspot.com/2011/06/fix-price-facet-display-in-solr-search.htm l: - Under 50 (1331) - [50.0 TO

FYI: How to build and start Apache Solr admin app from source with Maven

2011-06-10 Thread Way Cool
Hi, guys, FYI: Here is the link to how to build and start Apache Solr admin app from source with Maven just in case you might be interested: http://thetechietutorials.blogspot.com/2011/06/how-to-build-and-start-apache-solr.html Have fun. YH