We need to have a document id available for every document (Per core). There is DocID in Lucene Index but did not find any API to expose it using Solr.
May be if we can alter Solr to optionally return the DocId (which is unique), We can pass docid as one of the parameter for fq, and it will return the docid in the search result. On Thu, Apr 5, 2012 at 10:13 PM, Chris Hostetter <hossman_luc...@fucit.org>wrote: > > : > Is it possible to define a field as "Counter Column" which can be > : > auto-incremented. > > a feature like this does not exist in Solr at the moment, but it would be > possible to implement this fairly easily in an UpdateProcessor -- however > it would only be functional in very limited situations (ie: all docs must > use the same update chain, single node indexes only -- no distributed > search / solr cloud) > > a better question is: why? what do you wnat to do with a field like this? > > https://people.apache.org/~hossman/#xyproblem > XY Problem > > Your question appears to be an "XY Problem" ... that is: you are dealing > with "X", you are assuming "Y" will help you, and you are asking about "Y" > without giving more details about the "X" so that we can understand the > full issue. Perhaps the best solution doesn't involve "Y" at all? > See Also: http://www.perlmonks.org/index.pl?node_id=542341 > > > > > -Hoss >