Re: multivalued field using DIH

2014-03-27 Thread Shawn Heisey
On 3/27/2014 12:49 AM, scallawa wrote: > I am using solr 4.7 and am importing data directly from a mysql database > table using the DIH. I have a column that looks like similar to this below > in that it has multiple values in the database. > > material cotton "polyester blend" rayon >

Re: multiValued field score and count

2013-06-26 Thread Flavio Pompermaier
I tried to play a little with the tools you suggested. However, I probably miss something because the term frequency is not that expected. My itemid field is defined (in schema.xml) as: I was supposing that indexing via post.sh the xml mentioned in the first mail, the term frequency of itemid 1

Re: multiValued field score and count

2013-06-26 Thread Upayavira
I mentioned two features, [explain] and termfreq(field, 'value'). Neither of these require anything special, as they are using stuff central to Lucene's scoring mechanisms. I think you can turn off the storage of term frequencies, obviously that would spoil things, but that's certainly not on my de

Re: multiValued field score and count

2013-06-26 Thread Flavio Pompermaier
So, in order to achieve that feature I have to declare my fileds (authorid and itemid) with termVectors="true" termPositions="true" termOffsets="false"? Should it be enough? On Wed, Jun 26, 2013 at 10:42 AM, Upayavira wrote: > Add fl=[explain],* to your query, and review the output in the new >

Re: multiValued field score and count

2013-06-26 Thread Upayavira
Add fl=[explain],* to your query, and review the output in the new field. It will tell you how the score was calculated. Look at the TF or termfreq values, as this is the number of times the term appears. Also, you could add this to your fl= param: count:termfreq(authorid, '1000’) which would give

Re: Multivalued field

2011-12-06 Thread Erick Erickson
Then sometime later id (all this in your schema.xml file). That's it. The data field isn't analyzed at all, so the type is largely irrelevant. what you put in it is all your pairs of doubles in some kind of delimited format, e.g. 2345.0, | 873945.7, Now you just get your data field back, spli

Re: Multivalued field

2011-12-05 Thread Alan Miller
I know I'm using SolR for a task that is better suited for the DB to handle but I'm doing this for reasons related to the overall design of my system. My DB is going to become very large over time and it is constantly being updated via Hadoop jobs that collect,analyze some data and generate t

Re: Multivalued field

2011-12-05 Thread Erick Erickson
Well, Solr is a text search engine, and a good one. But this sure feels like a problem that RDBMSs were built to handle. Why do you want to do this? Is your current performance a problem? Are you blowing your space resources out of the water? Do you want to distribute your app to places not connect

Re: Multivalued field: get only the str that matches with the query

2011-07-14 Thread Tomás Fernández Löbbe
I once achieve this by using the highlighting feature, I don't know if there is a more direct way of doing it. On Wed, Jul 13, 2011 at 1:51 PM, Lucas Miguez wrote: > Hi all, > > I have a multivalued field. I need to make a search in the multivalued > field and get only the values that match with

[solved] Re: Multivalued field search...

2010-11-18 Thread Dario Rigolin
On Thursday, November 18, 2010 12:42:49 pm Dario Rigolin wrote: > On Thursday, November 18, 2010 12:36:40 pm Dario Rigolin wrote: > > Sorry wrong query: > > q=field1:("A BB1" AND "B BB2") > > Dario q=field1:("A BB1 B BB2"~10) I discovered that proximity search works well with multiple terms C

Re: Multivalued field search...

2010-11-18 Thread Dario Rigolin
On Thursday, November 18, 2010 12:36:40 pm Dario Rigolin wrote: Sorry wrong query: q=field1:("A BB1" AND "B BB2") Dario

Re: MultiValued field: can I retrieve just one?

2007-04-25 Thread Jamie Orchard-Hays
Thanks guys, that's what I figured. Jamie On 4/25/07, Yonik Seeley <[EMAIL PROTECTED]> wrote: On 4/25/07, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote: > If I have a multiValued field, will it always return all items in the > array, or can I retrieve just those in the document with matching > t

Re: MultiValued field: can I retrieve just one?

2007-04-25 Thread Yonik Seeley
On 4/25/07, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote: If I have a multiValued field, will it always return all items in the array, or can I retrieve just those in the document with matching text? You always get all of them. Lucene does not return to you which field matches a query. Feature

Re: MultiValued field: can I retrieve just one?

2007-04-25 Thread Ryan McKinley
The highlighting results will return fields with matching text, but there is not a way to limit some multivalued fields from the returned documents. Jamie Orchard-Hays wrote: If I have a multiValued field, will it always return all items in the array, or can I retrieve just those in the doc

Re: multiValued field ordering

2007-02-24 Thread Yonik Seeley
On 2/24/07, Brian Whitman <[EMAIL PROTECTED]> wrote: Is there any guarantee that if I add a doc like one two three four that they will always come back in the same order during queries? Yes, order is always maintained. -Yonik